Timer for announcement
#1

Need help about SetTimerEx. I want to set timer on Welcome Message(SendClientAnnouncement). When player join, this message will have to pop up after 10seconds (10000 miliseconds).

Here's the code:
PHP код:
if (PlayerInfo[playerid][pFirstSpawn] == 0)
    {
    
PlayerInfo[playerid][pFirstSpawn] = 1;
    
SendClientOnScreenText(playerid,MOTD);
    
SendClientMessage(playeridCOLOR_SERVER_MAIN_MSG"{FF66FF}THIS ISN'T DEATHMATCH - NO RANDOM KILLING!  {FFFFFF}Follow the rules or be {FF0000}Kicked{FFFFFF}!");
format(stringsizeof(string), "Welcome To ~y~%s~n~~b~%s~n~~w~Type ~y~/help~w~, ~y~/rules ~w~or~n~~y~/cmds ~w~For Game Info",ServerInfo[sMapName],PlayerInfo[playerid][pName]);
    
SendClientAnnouncement(playerid,string);
    
    
    }
//SpawnCheck
    
PlayerInfo[playerid][pResume] = 1;
    
PlayerInfo[playerid][pSpawn] = 1;
    }
//SpectateCheck
    
    
}//NPCCheck
    
return 1;

I know that I need to put this somewhere, but where exactly?

PHP код:
SetTimerEx("WelcomeTimer"10000false"i"playerid);
}
forward WelcomeTimer(playerid);
public 
WelcomeTimer(playerid
I will give reputation for help.
Thanks
Reply


Messages In This Thread
Timer for announcement - by DarknesS1988 - 21.09.2017, 09:13
Re: Timer for announcement - by Twizted - 21.09.2017, 09:19
Re: Timer for announcement - by DarknesS1988 - 21.09.2017, 09:42
Re: Timer for announcement - by Twizted - 21.09.2017, 09:46
Re: Timer for announcement - by DarknesS1988 - 21.09.2017, 10:00
Re: Timer for announcement - by Twizted - 21.09.2017, 10:05

Forum Jump:


Users browsing this thread: 1 Guest(s)