24.01.2011, 21:50
Where is senderid used?
pawn Код:
public GivePlayerWeapons(senderid, playeridcheck, giveplayerweaponid)
{
for (new i = 0; i < 13; i++) // START THE LOOP TO CHECK WEAPONS
{
new tmpweapid, tmpweapammo;
GetPlayerWeaponData(playeridcheck, i, tmpweapid, tmpweapammo);
//FOR SLOT 1 - PRIMARY WEAPON
if(3 <= i <= 7)
{
if(tmpweapammo > 0) {
GivePlayerWeapon(playeridcheck, tmpweapid, -tmpweapammo); // << to remove a weapon ???
GivePlayerWeapon(playeridcheck, giveplayerweaponid, 999);
}
}
else
{
GivePlayerWeapon(playeridcheck, giveplayerweaponid, 999);
}
}
}