14.04.2011, 15:56
Can someone tell me how to make a timer "like type /help to see the commands".I look in https://sampwiki.blast.hk/wiki/SetTimer and did it but the timer isnt working.Can some tell how.
SetTimer("help",60000,false);
forward help;
public help {
//Feel free to edit the message :D
SendClientMessageToAll(your color here,"/help to see commands");
SetTimer("help",60000,false);
}
@Seven_of_Nine - Why not set the timer to repeate...? Instead of making it run over and
|
new
HelpTimer[MAX_PLAYERS];
command(help, playerid, params[])
{
if(HelpTimer[playerid]) { KillTimer(HelpTimer[playerid]); HelpTimer[playerid] = 0; }
else SetTimerEx("HelpFunction", 60 * 1000, true, "i", playerid);
return 1;
}
forward HelpFunction(playerid);
public HelpFunction(playerid)
{
SendClientMessage(playerid, 0x0, "Help message # 1.");
return 1;
}