A few scripting requests
#6

pawn Код:
new time1;//On top of your script

forward Check();//On top of your script

public OnGameModeInit()//You know where it is.
{
    new h;
    SetTimer("Check", 30000,true);
    gettime(h);
    time1 = h;
}
public Check()//Somewhere in your script.
{
    new h, m;
    gettime(h,m);
    if((h == tempo+1 || h == 23) && m == 0)
    {
        for(new i = 0; i < MAX_PLAYERS; i ++) { SetPlayerScore(i, GetPlayerScore(i) + 1); }
    }
    else { tempo = h; }
    return 1;
}
Reply


Messages In This Thread
A few scripting requests - by R3G1ST3R - 30.06.2011, 02:29
Re: A few scripting requests - by Shadoww5 - 30.06.2011, 02:54
Re: A few scripting requests - by R3G1ST3R - 30.06.2011, 23:10
Re: A few scripting requests - by =WoR=Varth - 30.06.2011, 23:14
Re: A few scripting requests - by R3G1ST3R - 30.06.2011, 23:41
Re: A few scripting requests - by =WoR=Varth - 01.07.2011, 00:21

Forum Jump:


Users browsing this thread: 1 Guest(s)