Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 1:
- {
- new Float:X,Float:Y,Float:Z;
- GetVehiclePos(i,X,Y,Z);
- if( IsPlayerInRangeOfPoint(playerid,10.0,X,Y,Z))
- {
- if(VoziloInfo[i][vZakljucan] == 0)
- {
- VoziloInfo[i][vZakljucan] = 0; SacuvajVozilo(i);
- GameTextForPlayer(playerid, "~w~Vozilo ~r~zakljucano", 3000, 3);
- new string[120];
- format(string, sizeof(string), "*%s zakljucava svoje vozilo marke %s.",GetName(playerid),ImenaVozila[VoziloInfo[i][vModel] - 400]);
- ProxDetector(20.0, playerid, string,roza2,roza2,roza2,roza2,roza2);
- SacuvajVozilo(i);
- }
- else
- {
- VoziloInfo[i][vZakljucan] = 1; SacuvajVozilo(i);
- GameTextForPlayer(playerid, "~w~Vozilo ~g~otkljucano", 3000, 3);
- new string[120];
- format(string, sizeof(string), "*%s otkljucava svoje vozilo marke %s.",GetName(playerid),ImenaVozila[VoziloInfo[i][vModel] - 400]);
- ProxDetector(20.0, playerid, string,roza2,roza2,roza2,roza2,roza2);
- SacuvajVozilo(i);
- }
- }
- else return SCM(playerid,grey,"Niste u blizni vaseg vozila ,nemate domet !");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement