14.06.2015, 21:48
Boa tarde galera, eu calo o player normal, porйm no onplayertext nгo funciona, ele continua falando:
no onplayertext ta assim :
e o comando й esse:
no onplayertext ta assim :
PHP код:
if(PlayerInfo[playerid][pCalado] == true)
{
SendClientMessage(playerid,vermelho,"| ERRO | Vocк estб mudo e nгo pode falar no chat");
return 0;
}
PHP код:
CMD:calar(playerid, params[])
{
new ID, Motivo[30],Str[128];
if( PlayerInfo[playerid][pAdmin] < 2 || PlayerInfo[playerid][pMod] < 2 || PlayerInfo[playerid][pDono] < 2)
{
if(sscanf(params, "is", ID, Motivo))return SendClientMessage(playerid, vermelho, "USE: /calar [ID] [MOTIVO]");
if(!IsPlayerConnected(ID))return SendClientMessage(playerid, vermelho, "| ERRO | O jogador nгo estб conectado");
PlayerInfo[ID][pCalado] = true;
format(Str, sizeof(Str), "AdmCmd: O administrador %s calou o jogador %s. Motivo: %s", Nome(playerid), Nome(ID), Motivo);
SendClientMessageToAll(-1, Str);
}
else return SendClientMessage(playerid, vermelho, "| ERRO | Vocк nгo tem permissгo!");
return 1;
}