[Ajuda] Limpar Chat - Ajudem Por Favor ;/
#1

Galera, minha Dъvida й o Seguinte: Como eu faзo para criar o comando /limparchat e aparecer no Chat o Nome do Administrador que Limpou o Chat? Exemplo: '' O Administrador iSwaaG Limpou o Chat '', Entenderam? Quem me Ajudar eu Agradeзo Muito
Reply
#2

Aqui amigo isso й muito facil

Quote:

f(strcmp(cmdtext,"/limpar", true) == 0)
{
for(new a = 0; a < 100; a++)
{
SendClientMessageToAll(0xFFFFFFAA, " ");
}
return 1;
}

Reply
#3

Quote:

if(strcmp(cmdtext,"/limpar", true) == 0)
{
for(new a = 0; a < 20; a++)
{
SendClientMessageToAll(0xFFFFFFAA, " ");
}
return 1;
}

Aonde Eu Devo Colar Isso?
Reply
#4

dcmd_LimparChat(playerid,params[]) {
#pragma unused params
for(new i = 0; i < 100; i++) SendClientMessageToAll(0xFFFFFFFF," "); return 1;}
Reply
#5

Quote:
Originally Posted by iSwaaG
Посмотреть сообщение
Aonde Eu Devo Colar Isso?
OnPlayerCommandText(playerid, cmdtext[])

Quote:

if(strcmp(cmdtext,"/limparchat", true) == 0)
{
if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo й um administrador logado na RCON!");
for(new a = 0; a < 100; a++)
{
SendClientMessageToAll(0xFFFFFFFF, " ");
}

return 1;
}

Reply
#6

Quote:

OnPlayerCommandText(playerid, cmdtext[])

if(strcmp(cmdtext,"/limpar", true) == 0)
{
for(new a = 0; a < 100; a++)
{
SendClientMessageToAll(0xFFFFFFFF, " ");
}

return 1;
}

Irб aparecer o nome do ADM que limpou o Chat?
Reply
#7

Desculpe nгo vi os comentбrios anteriores Quando enviei jб tinham respondido, demorei atualizar.
Reply
#8

Quote:
Originally Posted by MrDiase
Посмотреть сообщение
Desculpe nгo os comentбrios anteriores Quando enviei jб tinham respondido, demorei atualizar.
Tente assim vк se dб certo nгo tentei ainda.

Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{

if(strcmp(cmdtext,"/limparchat", true) == 0)
{
if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo й um administrador logado na RCON!");

for(new a = 0; a < 100; a++)
{
SendClientMessageToAll(0xFFFFFFFF, " ");
}

new string[128]; // //
new NomeADM[MAX_PLAYER_NAME];
GetPlayerName(playerid, NomeADM, sizeof(NomeADM));
format(string, sizeof(string), "{FFB300}O administrador %s limpou o chat!", NomeADM);
SendClientMessageToAll(3,string);
return 1;
}

return 0;
}

Reply
#9

Respodes te errado lool mais enfim. O rapaz nгo deixo nem o dнzimo jб foi embora kkkkkkk
Reply
#10

pawn Код:
if(strcmp, "/LimparChat", true)==0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo й admin cavalo");
new nomeadm[MAX_PLAYER_NAME];
GetPlayerName(playerid, nomeadm,sizeof(nomeadm));
for(new t; t 100; ++t)
{
SendClientMessageToAll(-1 " ");
format(Str,sizeof(Str), "o Admin %s limpou o Chat", nomeadm);
SendClientMessageToAll(-1 Str);
}
return 1;
}
tenta ai acho que й assim n me lembro
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)