Guest User

Untitled

a guest
Jul 18th, 2011
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. public OnPlayerStateChange(playerid, newstate, oldstate)
  2. {
  3. new PlayerName[24];
  4. GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
  5. if(newstate == PLAYER_STATE_DRIVER)
  6. {
  7. new Vehicle = GetPlayerVehicleID(playerid);
  8. if(Vehicle == Nedac)
  9. {
  10. if(strcmp(PlayerName,"Ime_Prezime",true)) //Provjerava dali je taj igrac
  11. {
  12. RemovePlayerFromVehicle(playerid); //Izbacuje igraca iz auta,ako nije taj definisani
  13. SendClientMessage(playerid, 0x33AA33AA, "Ovo vozilo moze voziti samo Ime_Prezime"); //Izbacuje poruku
  14. }
  15. }
  16. }
  17. return 1;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment