Advertisement
Guest User

a

a guest
Sep 22nd, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.13 KB | None | 0 0
  1.             case 1:
  2.             {
  3.               new Float:X,Float:Y,Float:Z;
  4.               GetVehiclePos(i,X,Y,Z);
  5.               if( IsPlayerInRangeOfPoint(playerid,10.0,X,Y,Z))
  6.             {
  7.  
  8.                 if(VoziloInfo[i][vZakljucan] == 0)
  9.                 {
  10.                     VoziloInfo[i][vZakljucan] = 1; SacuvajVozilo(i);
  11.                     GameTextForPlayer(playerid, "~w~Vozilo ~r~zakljucano", 3000, 3);
  12.                     new string[120];
  13.                     format(string, sizeof(string), "*%s zakljucava svoje vozilo marke %s.",GetName(playerid),ImenaVozila[VoziloInfo[i][vModel] - 400]);
  14.                     ProxDetector(20.0, playerid, string,roza2,roza2,roza2,roza2,roza2);
  15.                     SacuvajVozilo(i);
  16.                 }
  17.  
  18.                 else
  19.                 {
  20.                
  21.                     VoziloInfo[i][vZakljucan] = 0; SacuvajVozilo(i);
  22.                     GameTextForPlayer(playerid, "~w~Vozilo ~g~otkljucano", 3000, 3);
  23.                     new string[120];
  24.                     format(string, sizeof(string), "*%s otkljucava svoje vozilo marke %s.",GetName(playerid),ImenaVozila[VoziloInfo[i][vModel] - 400]);
  25.                     ProxDetector(20.0, playerid, string,roza2,roza2,roza2,roza2,roza2);
  26.                     SacuvajVozilo(i);
  27.                 }
  28.             }
  29.             else  return SCM(playerid,grey,"Niste u blizni vaseg vozila ,nemate domet !");
  30.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement