30.01.2014, 14:19
PHP код:
COMMAND:lc(playerid, params[])
{
if(pAdmin[playerid] >= 1)//aki esta definido para admin 1 ou maior, exemplo 1, 2, 3, 4, 5 .. se quiser alterar sу para 1 tipo de admin altere
{//para pAdmin[playerid] == 1)
new name[ 24 ], string[ 64 ];
limparChat(playerid, 30);
format( string, sizeof(string), "chat do server foi resetado", name );
GameTextForAll( string, 5000, 3 );
return 1;
}
}
stock limparChat(playerid, linhas)
{
for(new b = 0; b <= linhas; b++) SendClientMessage(playerid, -1, " ");
}
@Edit
fiz outro para limpar chat para todos, nгo sу para vocк .
PHP код:
if(strcmp(cmdtext,"/limparchat", true) == 0)
{
if(pAdmin[playerid] >= 1)
{
for(new a = 0; a < 20; a++)
{
SendClientMessageToAll(0x33CCFFAA, " ");
}
return 1;
}
}
This forum requires that you wait 240 seconds between posts. Please try again in 4 seconds.