Guest User

Untitled

a guest
Aug 1st, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. new Float:Poz[3]; GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
  2. if(!ispassenger)
  3. {
  4. for(new i; i < sizeof(VoziloInfo); i++)
  5. {
  6. if(VoziloInfo[i][vID] == vehicleid)
  7. {
  8. if(VoziloInfo[i][vImaVlasnika] == 1)
  9. {
  10. if(PlayerInfo[playerid][pPosedovanjeAuta] == i || VoziloInfo[i][vZakljucan] == 0 || IsPlayerAdmin(playerid))
  11. {
  12. IsPlayerAdmin(playerid) SCMF(playerid,-1,"Ulazite u vozilo ID: %d | Vlasnik: %s",i, VoziloInfo[i][vVlasnik]);
  13. return 1;
  14. }
  15. else
  16. {
  17. new string[128]; SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
  18. format(string,sizeof(string), "Auto Zakljucan | Vlasnik: %s", VoziloInfo[i][vVlasnik]);
  19. SCM(playerid,-1,string);
  20. return 1;
  21. }
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment