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); } } |
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 ");
for(new i = 0; i < 100; i ++) SendClientMessage(playerid, -1, " ");
Instead of making long codes, like this
Код:
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 "); pawn Код:
|
#define CleanChatToPlayer(%0,%1) for(new msg=0; msg<%1; msg++) {SendClientMessage(%0, -1, " ");}
//native CleanChatToPlayer(playerid, cant=100);
#define CleanChatToAll(%0) for(new msg=0; msg<%0; msg++) {SendClientMessageToAll(-1, " ");}
//native CleanChatToAll(cant=100);
for(new Order = 0; Order < 200; Order++)
SendClientMessageToAll(-1, " ");
for(new i = 0; i < 100; i++) SendClientMessage(playerid, -1, " ");
public OnPlayerConnect(playerid)
{
for(new i = 0; i < 100; i++) SendClientMessage(playerid, -1, " ");
return 1;
}