03.12.2012, 13:42
pawn Код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerWeapon(playerid) == 30 || GetPlayerWeapon(playerid) == 31)
{
if(GetPlayerAmmo(playerid) == 0) g_variabile[playerid][amunition] = 0; // A note: This will be done several times until the weapon is actually removed, like if if you made a message for DEBUGGING, it will be sent like 3-4 hours, as the player keeps updating and it will stop once the gun is out of his hands. This shouldn't be a problem with this case, it just sets the value to 0 several times.
}
return 1;
}