toribio

toribio

Feb 21st, 2009
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. //no topo:
  2. new veiculo;
  3.  
  4. //no OnGameModeInit:
  5. veiculo = CreateVehicle(modelid, x, y, z, angle, cor1, cor2, 60000);
  6.  
  7. //...:
  8. public OnPlayerStateChange(playerid, newstate, oldstate)
  9. {
  10.     new pname[24];
  11.     GetPlayerName(playerid, pname, sizeof pname);
  12.     if(newstate == PLAYER_STATE_DRIVER &&
  13.        strcmp(pname, "Nome_do_Jogador", false) != 0
  14.        GetPlayerVehicleID(playerid) == veiculo)
  15.     {
  16.         RemovePlayerFromVehicle(playerid);
  17.     }
  18.     return 1;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment