11.02.2014, 03:06
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); } } |