03.12.2012, 13:12
I have an "globale variabile" I want to reset the "globale variabile" on player when he is use the last bullet of weapon or don't have bullet.
Example of an ideea:
Example of an ideea:
PHP код:
public OnPlayerUpdate(playerid)
{
new wpn, ammo;
GetPlayerWeaponData(playerid, 5, wpn, ammo)
g_variabile[playerid][amunition] = ammo
return 1;
}