Reset a variabile when player don't have any ammo
#1

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:
PHP код:
public OnPlayerUpdate(playerid)
{
    new 
wpnammo
    
GetPlayerWeaponData(playerid5wpnammo)
    
g_variabile[playerid][amunition] = ammo
    
    
return 1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)