Display a timer +REP
#5

pawn Код:
new tmrGMX;
new gGMXTick;

// When you start your GMX timer
// This part of code can be in your command
tmrGMX = SetTimer("OnServerRestarting", 1000, true);
gGMXTick = 10; // These are in seconds

// Declaring the timer
forward OnServerRestarting();
public    OnServerRestarting()
{
    gGMXTick--;
    if (gGMXTick == 0)
    {
        GameTextForAll("~g~Server restarted!", 1000, 0);
        KillTimer(tmrGMX);
       
        SendRconCommand("gmx");
    }
    else
    {
        new string[35];
        format(string, sizeof (string), "~r~Restart in %i...", gGMXTick);
        GameTextForAll(string, 1000, 0);
    }
}
Reply


Messages In This Thread
Display a timer +REP - by Amit1998 - 26.03.2016, 02:01
Re: Display a timer +REP - by Gammix - 26.03.2016, 02:09
Re: Display a timer +REP - by Amit1998 - 26.03.2016, 02:15
Respuesta: Display a timer +REP - by Thewin - 26.03.2016, 04:17
Re: Display a timer +REP - by Gammix - 26.03.2016, 04:20

Forum Jump:


Users browsing this thread: 1 Guest(s)