Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
- if(newstate == PLAYER_STATE_DRIVER)
- {
- new Vehicle = GetPlayerVehicleID(playerid);
- if(Vehicle == Nedac)
- {
- if(strcmp(PlayerName,"Ime_Prezime",true)) //Provjerava dali je taj igrac
- {
- RemovePlayerFromVehicle(playerid); //Izbacuje igraca iz auta,ako nije taj definisani
- SendClientMessage(playerid, 0x33AA33AA, "Ovo vozilo moze voziti samo Ime_Prezime"); //Izbacuje poruku
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment