Get back the weapons
#4

Код:
new aOldWeapon[MAX_PLAYERS][13],OldAmmo[MAX_PLAYERS][13];
//this is where you are saving weapon before enter in area .
		  		for(new i; i < 13; ++i)
				{
					GetPlayerWeaponData(playerid, i, aOldWeapon[playerid][i], OldAmmo[playerid][i]);
				}

//this is when you leave arena.
//if u give anyweapon in arena then use ResetPlayerWeapons other wise not needed.
				ResetPlayerWeapons(playerid);
				for(new i; i < 13; ++i)
				{
					GivePlayerWeapon(playerid, aOldWeapon[playerid][i], OldAmmo[playerid][i]);
				}
//this give player his weapons.
Reply


Messages In This Thread
Get back the weapons - by SonicFreeStyle - 12.05.2016, 08:46
Re: Get back the weapons - by oMa37 - 12.05.2016, 08:52
Re: Get back the weapons - by Amunra - 12.05.2016, 09:02
Re: Get back the weapons - by MBilal - 12.05.2016, 09:15

Forum Jump:


Users browsing this thread: 2 Guest(s)