21.09.2011, 18:34
Pessoal uso esse CMD no meu GM sу que ultimamente ele estб meio estranho (temperamental '-' )
QUando desativo o chat e ativo depois, do nada ele bloqueia o chat, mas nem manda msg dizendo "Chat desativado" apenas bloqueia, dai novamente tenho que usar o /ativarchat
QUando desativo o chat e ativo depois, do nada ele bloqueia o chat, mas nem manda msg dizendo "Chat desativado" apenas bloqueia, dai novamente tenho que usar o /ativarchat
PHP код:
if(strcmp(cmd, "/ativarchat", true) == 0)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] == 4 || pAdmin[playerid] == 5){
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SendClientMessage(i, tcadm, "* Chat ativado!");
chat[i] = false;
}
}
}
return 1;
}
}
if(strcmp(cmd, "/desativarchat", true) == 0)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] == 4 || pAdmin[playerid] == 5){
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SendClientMessage(i, tcadm, "* Chat desativado!");
chat[i] = true;
}
}
}