toribio

toribio

Feb 21st, 2009
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. public OnPlayerStateChange(playerid, newstate, oldstate)
  2. {
  3.     new pname[24];
  4.     GetPlayerName(playerid, pname, sizeof pname);
  5.     if(newstate == PLAYER_STATE_DRIVER &&
  6.        strcmp(pname, "Nome_do_Jogador", false) != 0
  7.        GetVehicleModel(GetPlayerVehicleID(playerid)) == MODELO_ID)
  8.     {
  9.         RemovePlayerFromVehicle(playerid);
  10.     }
  11.     return 1;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment