Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //----------------------------------------------------
- #include <a_samp>
- //----------------------------------------------------
- new Oruzje[MAX_PLAYERS][50], municija[MAX_PLAYERS][50];
- //----------------------------------------------------
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- if((newstate == PLAYER_STATE_DRIVER) || (newstate == PLAYER_STATE_PASSENGER))
- {
- for(new j=0; j<11; j++) GetPlayerWeaponData(playerid, j, Oruzje[playerid][j], municija[playerid][j]);
- ResetPlayerWeapons(playerid);
- }
- if((newstate == PLAYER_STATE_ONFOOT) && ((oldstate == PLAYER_STATE_DRIVER) || (oldstate == PLAYER_STATE_PASSENGER)))
- {
- for(new j=0; j<11; j++) GivePlayerWeapon(playerid, Oruzje[playerid][j], municija[playerid][j]);
- }
- return 1;
- }
- //----------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment