18.09.2011, 07:40
Code:
new PlayerGun[MAX_PLAYERS][47];
public CheckIfPlayerHasGun(playerid);
{
for(new j=0; j<47; j++)
{
new wep1, ammo1;
GetPlayerWeaponData(playerid, GetWeaponSlot(j), wep1, ammo1);
if(wep1 != j)
{
PlayerGun[playerid][j] = 0;
}
}
}
IMPORTANT: not to check if player has gun in arm like(GetPlayerWeapon) i want to check all player weapons.

