04.03.2014, 14:57
PHP код:
if(strcmp(cmd,"/a",true)==0)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), P_CONTAS, aname);
if(pAdmin[playerid] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5)
{
new tmp[256];
strmid(tmp,cmdtext,2,strlen(cmdtext));
if(!strlen(tmp))
{
SendClientMessage(playerid,admcmd, "Digite: /a [texto]");
return 1;
}
else
{
format(string, sizeof(string), "[Admin] %s diz: %s ", aname, tmp);
SendClientMessageToAll(azul, string);
return 1;
}
}
else
{
SendClientMessage(playerid,Vermelho,"{0099FF}[x]{CCCCFF} Vocк nгo tem acesso a esse comando!");
return 1;
}
}