how to clear chat after player connected
#2

oh got it Yesss!
Quote:

new timerclearconnectchat;
public OnPlayerConnect(playerid)
{
SetPlayerColor(playerid, 0xA9C4E400);
Logged[playerid] = 0;
Checkpoint[playerid] = 0;
SendClientMessage(playerid, COLOR_YELLOW, "Loading...");
if(IsPlayerConnected(playerid))
{
format(Player[playerid][pName], MAX_PLAYER_NAME, "%s", GetName(playerid));
new ORMrmid = Player[playerid][pORM_ID] = orm_create("players");
orm_addvar_int(ormid, Player[playerid][pID], "ID");
orm_addvar_string(ormid, Player[playerid][pName], MAX_PLAYER_NAME+1, "Name");
orm_addvar_string(ormid, Player[playerid][pPassword], 32, "Password");
orm_addvar_int(ormid, Player[playerid][pAdmin], "Admin");
orm_addvar_int(ormid, Player[playerid][pClass], "Class");
orm_addvar_int(ormid, Player[playerid][pLevel], "Level");
orm_addvar_int(ormid, Player[playerid][pRespect], "Respect");
orm_addvar_int(ormid, Player[playerid][pPoint], "Point");
orm_addvar_int(ormid, Player[playerid][pCash], "Cash");
orm_addvar_int(ormid, Player[playerid][pFac], "Faction");
orm_addvar_int(ormid, Player[playerid][pRank], "Rank");
orm_addvar_int(ormid, Player[playerid][pJob], "Job");
orm_addvar_int(ormid, Player[playerid][pSkill], "Skill");
orm_addvar_int(ormid, Player[playerid][pSkin], "Skin");
orm_setkey(ormid, "Name");
orm_select(ormid, "OnPlayerDataLoad", "d", playerid);
timerclearconnectchat = SetTimerEx("ClearConnectChat", 1000, true, "d", playerid);
}
return 1;
}

forward ClearConnectChat(playerid);
public ClearConnectChat(playerid)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, " ");
SendClientMessage(playerid, COLOR_BLUE3, "z ");
KillTimer(timerclearconnectchat);
}
}

Reply


Messages In This Thread
how to clear chat after player connected - by Kapupc - 11.02.2014, 02:39
Re: how to clear chat after player connected - by Kapupc - 11.02.2014, 03:06
Re: how to clear chat after player connected - by Zex Tan - 11.02.2014, 03:49
Re: how to clear chat after player connected - by Mattakil - 11.02.2014, 04:52
Respuesta: how to clear chat after player connected - by OTACON - 11.02.2014, 05:13
Re: how to clear chat after player connected - by DaniceMcHarley - 11.02.2014, 09:46
Re: how to clear chat after player connected - by Threshold - 11.02.2014, 12:39

Forum Jump:


Users browsing this thread: 2 Guest(s)