Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Float:Poz[3]; GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
- if(!ispassenger)
- {
- for(new i; i < sizeof(VoziloInfo); i++)
- {
- if(VoziloInfo[i][vID] == vehicleid)
- {
- if(VoziloInfo[i][vImaVlasnika] == 1)
- {
- if(PlayerInfo[playerid][pPosedovanjeAuta] == i || VoziloInfo[i][vZakljucan] == 0 || IsPlayerAdmin(playerid))
- {
- IsPlayerAdmin(playerid) SCMF(playerid,-1,"Ulazite u vozilo ID: %d | Vlasnik: %s",i, VoziloInfo[i][vVlasnik]);
- return 1;
- }
- else
- {
- new string[128]; SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
- format(string,sizeof(string), "Auto Zakljucan | Vlasnik: %s", VoziloInfo[i][vVlasnik]);
- SCM(playerid,-1,string);
- return 1;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment