28.02.2013, 19:51
(
Последний раз редактировалось Coringa_Vilao; 07.11.2015 в 02:22.
)
Resolvido !
CMD:limparchat(playerid)
{
new
sendername[MAX_PLAYER_NAME],
string[40]
;
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 1)) return SendClientMessage(playerid, COR_CINZA, "Vocк nгo й um admin!");
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)) ClearChatbox(i, 100);
}
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
{
format(string, sizeof(string), "~b~%s ~n~~w~Resetou o Chat!",playername);
}
GameTextForAll(string, 5000, 1);
return true;
}
return true;
}
CMD:lchat(playerid)
{
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COR_CINZA, "Vocк nгo й um admin!");
new
string[128];
GetNome[MAX_PLAYER_NAME];
;
GetPlayerName(playerid, GetNome, sizeof(GetNome));
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ClearChatbox(i, 100);
}
}
format(string, sizeof(string), "~b~%s ~n~~w~Resetou o Chat!",GetNome);
GameTextForAll(string, 5000, 1);
return 1;
}
new
string[128];
GetNome[MAX_PLAYER_NAME];
;
new
string[128],
GetNome[MAX_PLAYER_NAME]
;
CMD:lchat(playerid)
{
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COR_CINZA, "Vocк nгo й um admin!");
new
string[ 129 ],
_sk[MAX_PLAYER_NAME]
;
GetPlayerName(playerid, _sk, 24);
ClearChatboxToAll(15); // 15 numero de linhas ^^ deixe 20 no max ^^
format(string, sizeof(string), "~b~%s ~n~~w~Resetou o Chat!",_sk);
GameTextForAll(string, 5000, 1);
return 1;
}
// lol acabei dando um upgrade na funзгo original kkkkk
forward ClearChatboxToAll(lines); public ClearChatboxToAll(lines)
{
for(new i = 0; i < lines; i++)
{
SendClientMessageToAll(-1, " ");
}
return 1;
}