10 seconds before the command
#2

You can use timers for it. Something like this:
pawn Код:
CMD:healall(playerid, params[])
{
    SendClientMessage(playerid, COLOR_WHITE, "[SERVER] Everyone is getting healed in 10seconds!");
    SetTimer("heal", 10000, false);
    return 1;
}
 
forward heal();
public heal()
{
    // Here your heal code.
    // Untested
}
Reply


Messages In This Thread
10 seconds before the command - by Join7 - 12.09.2011, 19:37
Re: 10 seconds before the command - by Kingunit - 12.09.2011, 19:40
Re: 10 seconds before the command - by Jafet_Macario - 12.09.2011, 19:41
Re: 10 seconds before the command - by Join7 - 12.09.2011, 19:55
Re: 10 seconds before the command - by Kingunit - 12.09.2011, 19:59
Re: 10 seconds before the command - by Join7 - 12.09.2011, 20:05
Re: 10 seconds before the command - by Kingunit - 12.09.2011, 20:14
Re: 10 seconds before the command - by Join7 - 12.09.2011, 20:23
Re: 10 seconds before the command - by Kingunit - 12.09.2011, 20:25

Forum Jump:


Users browsing this thread: 2 Guest(s)