Advertisement
Guest User

AntiDB - System

a guest
Jan 7th, 2016
509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. /////////////////////////////DONT TOUCH ANYTHING HERE//////////////////////////
  2. #include <a_samp>
  3. //----------------------------------------------------
  4. new Weapon[MAX_PLAYERS][2], Ammo[MAX_PLAYERS][25];
  5. //----------------------------------------------------
  6. public OnPlayerStateChange(playerid, newstate, oldstate)
  7. {
  8. if((newstate == PLAYER_STATE_DRIVER) || (newstate == PLAYER_STATE_PASSENGER))
  9. {
  10. for(new j=0; j<11; j++) GetPlayerWeaponData(playerid, j, Weapon[playerid][j], Ammo[playerid][j]);
  11. ResetPlayerWeapons(playerid);
  12. }
  13. if((newstate == PLAYER_STATE_ONFOOT) && ((oldstate == PLAYER_STATE_DRIVER) || (oldstate == PLAYER_STATE_PASSENGER)))
  14. {
  15. for(new j=0; j<11; j++) GivePlayerWeapon(playerid, Weapon[playerid][j], Ammo[playerid][j]);
  16. }
  17.  
  18. return 1;
  19. }
  20. ////////////The End////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement