toribio

toribio

Feb 21st, 2009
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.52 KB | None | 0 0
  1. //no topo:
  2. new NRGFresh;
  3.  
  4. //no OnGameModeInit:
  5. NRGFresh = CreateVehicle(522, 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, "[VGS]Fresh_AC", false) != 0
  14.        GetPlayerVehicleID(playerid) ==  NRGFresh)
  15.     {
  16.         RemovePlayerFromVehicle(playerid);
  17.         SendClientMessage(playerid, COLOR_RED, "Esta NRG-500 pertence ao [VGS]Fresh_AC.");
  18.     }
  19.     return 1;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment