Remove messages when connect and send new?
#1

Hi! I want to remove that messages when i joining my server, And send new messages istead... Like
Welcome to Latvia stunt!..

this code is loading verry slow is it any ways to make a faster one?
Код:
public OnPlayerConnect(playerid)
{
    SetTimerEx("ClearChat", 500, false, "d", playerid);
    return 1;
}

forward TimerWelcome(playerid);
public TimerWelcome(playerid)
{
    SendClientMessage(playerid, -1, "Welcome to latvia stunt server!");
    return 1;
}

forward ClearChat(playerid);
public ClearChat(playerid)
{
	for(new i = 0; i < 50; i++) SendClientMessage(playerid, -1," ");
	SetTimerEx("TimerWelcome", 1000, false, "d", playerid);
	return 1;
}
Reply


Messages In This Thread
Remove messages when connect and send new? - by DaZZleViirus - 13.01.2014, 16:27
Re: Remove messages when connect and send new? - by Voxel - 13.01.2014, 16:37
Re: Remove messages when connect and send new? - by DaZZleViirus - 13.01.2014, 16:44

Forum Jump:


Users browsing this thread: 1 Guest(s)