Advertisement
toribio

toribio

May 29th, 2009
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. //no OnPlayerStateChange:
  2. if(newstate == PLAYER_STATE_DRIVE && 596 <= GetVehicleModel(GetPlayerVehicleID(playerid)) <= 599)
  3. {
  4.     new arma[12], municao[12];
  5.  
  6.     for(new i = 0; i != 12; i++)
  7.     {
  8.         GetPlayerWeaponData(playerid, i, arma[i], municao[i]);
  9.         if(arma[i] == 25)
  10.             municao[i] -= 5;
  11.     }
  12.     ResetPlayerWeapons(playerid);
  13.  
  14.     for(new i = 0; i != 12; i++)
  15.         GivePlayerWeapon(playerid, arma[i], municao[i]);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement