26.06.2014, 20:57
pawn Код:
if(strcmp(cmd,"/amudarnick",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] != 1341) return SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб autorizado a usar este comando!");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /amudarnick [ id ]");
return 1;
}
new playaid;
playaid = ReturnUser(tmp);
if(IsPlayerConnected(playaid))
{
if(playaid != INVALID_PLAYER_ID)
{
MudarNickAceito[playaid] = 1;
GetPlayerName(playaid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
//format(string, sizeof(string), "Vocк autorizou %s a mudar o nick.", giveplayer);
//SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "Admin %s: Autorizou vocк a mudar o nick, digite /mudarnick.", sendername);
SendClientMessage(playaid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "ADMIN CMD: %s autorizou %s a mudar o nick !",sendername,giveplayer);
ABroadCast(COLOR_LIGHTRED,string,1);
}
}
}
return 1;
}