- 0
Problema radar
-
Similar Content
-
- 1 answer
- 210 views
-
- 3 answers
- 329 views
-
- 3 replies
- 382 views
-
- 1 reply
- 345 views
-
- 1 answer
- 202 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
MrAndrei
Problema intalnita (descriere): Salut Am facut sistemul de "startradar" pentru departamentul LSPD, insa, cand trec pe langa un PD cu radar on nu se intampla nimic.
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu):
public CustomPickups() { new Float:oldposx, Float:oldposy, Float:oldposz; new string[564]; foreach(Player,i) { GetPlayerPos(i, oldposx, oldposy, oldposz); if(Radaron[i] == 1) { foreach(Player, o) { if(IsPlayerInRangeOfPoint(o, 30.0, oldposx, oldposy, oldposz) && GetPlayerState(o) == PLAYER_STATE_DRIVER && OnDuty[o] == 0) { new viteza = Carspeed(o); if(viteza > Radarlimit[i]) { new nameradar[25],nameradar1[25]; GetPlayerName(o,nameradar,sizeof(nameradar)); GetPlayerName(i,nameradar1,sizeof(nameradar1)); format(string, sizeof(string), "{f03337}%s[ID:%d] is driving with %d km/h, Location: %s, Radar Limit: %d km/h!", nameradar,o,viteza,GetPlayerZone(o),Radarlimit[i]); SCM(i,COLOR_WHITE,string); format(string, sizeof(string), "{f03337}You were caught by %s radar with %d km/h, Radar Limit: %d km/h.",nameradar1,viteza,Radarlimit[i]); SCM(o,COLOR_WHITE,string); return 1; } } } } } return 1; }
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da,dar nu am reusit.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts