Guest User

Untitled

a guest
Apr 15th, 2013
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. //----------------------------------------------------
  2. #include <a_samp>
  3. //----------------------------------------------------
  4. new Oruzje[MAX_PLAYERS][50], municija[MAX_PLAYERS][50];
  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, Oruzje[playerid][j], municija[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, Oruzje[playerid][j], municija[playerid][j]);
  16. }
  17.  
  18. return 1;
  19. }
  20. //----------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment