SA-MP Forums Archive
Timer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Timer (/showthread.php?tid=560445)



Timer - Jigsaw123 - 28.01.2015

How do I set a timer so that 10 seconds after a player connects the chat gets cleared so they can't see the ..
Connected. Joining server... etc.

Thank you!


Re: Timer - Ironboy - 28.01.2015

I don't know if this is what you meant
pawn Код:
//OnPlayerConnect
SetTimerEx("Clearchat", 10000, 0, "i", playerid);

forward Clearchat(playerid);
public Clearchat(playerid)
{
    for(new i = 0; i < 11; i++) SendClientMessage(playerid,-1," ");
    return 1;
}



Re: Timer - Smileys - 28.01.2015

how about removing the message that's sent when someone connects?


Re: Timer - Jigsaw123 - 28.01.2015

Thanks IronBoy