Timer doesnt work
#4

pawn Код:
//top
new money[MAX_PLAYERS];
forward Chkmoney();

//GameModeInit
SetTimer("Chkmoney", 30000, true);

//Anywhere
public Chkmoney()
{
    new pname[MAX_PLAYER_NAME],astring[MAX_PLAYER_NAME+128];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(GetPlayerMoney(i) > money[i])
            {
                GetPlayerName(i,pname,sizeof(pname));
                format(astring,sizeof(astring),"%s(%i) has a cash imbalence, please investigate!", pname,i);
                SendClientMessageToAdmins(0xFF0000FF,astring);
            }
        }
    }
}
Reply


Messages In This Thread
Timer doesnt work - by jtemple042996 - 05.06.2012, 20:01
Re: Timer doesnt work - by Fj0rtizFredde - 05.06.2012, 20:53
Re: Timer doesnt work - by jtemple042996 - 07.06.2012, 03:21
Re: Timer doesnt work - by SnG.Scot_MisCuDI - 07.06.2012, 06:46
Re: Timer doesnt work - by jtemple042996 - 12.06.2012, 19:45

Forum Jump:


Users browsing this thread: 1 Guest(s)