- Money
#9

try
pawn Код:
public OnFilterScriptInit()
{
SetTimer("NegativeMoney",5000,0); // negative money check timer

return 1;
}
now do anywhere in script
pawn Код:
forward NegativeMoney();
now do...
pawn Код:
public NegativeMoney()
{
       if(GetPlayerMoney(playerid) < 0)// has negative money
        {
        GivePlayerMoney(playerid, 5000); // money rest
        SendClientMessage(playerid, COLOR_RED, "[Negative Money]: Reset");  
        }
        else
        {
        }

  }
Reply


Messages In This Thread
- Money - by Blackazur - 31.01.2013, 17:12
Re : - Money - by yusei - 31.01.2013, 17:18
Re: - Money - by Amora187 - 31.01.2013, 17:19
AW: - Money - by Blackazur - 31.01.2013, 17:25
AW: - Money - by Blackazur - 31.01.2013, 17:36
Re: - Money - by Patrick - 31.01.2013, 18:02
AW: - Money - by Blackazur - 31.01.2013, 20:20
Re: - Money - by Bakr - 31.01.2013, 20:25
Re: - Money - by Anak - 07.02.2013, 14:16
Re: - Money - by Tuntun - 07.02.2013, 14:28

Forum Jump:


Users browsing this thread: 1 Guest(s)