06.08.2010, 23:02
(
Последний раз редактировалось Daren_Jacobson; 07.08.2010 в 01:01.
)
That is the most complicated RemovePlayerWeapon I have ever seen.
pawn Код:
public RemovePlayerWeapon(playerid, weaponid)
{
SetPlayerArmedWeapon(playerid, weaponid);
if (GetPlayerWeapon(playerid) != 0)
GivePlayerWeapon(playerid, -(GetPlayerAmmo(playerid)));
return 1;
}