05.10.2012, 14:04
pawn Код:
if(strcmp(cmd, "/tiraradmin", true) == 0)
{
if(PlayerDados[playerid][Admin] < 5) return SendClientMessage(playerid, -1, "Vocк nгo й um Administrador Level 5.");
new pp[MAX_PLAYER_NAME], pp2[MAX_PLAYER_NAME], sStr[128];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, -1, "Uso correto: /tiraradmin [id]");
new gvpid = strval(tmp);
GetPlayerName(playerid, pp, sizeof(pp));
GetPlayerName(gvpid, pp2, sizeof(pp2));
format(sStr, sizeof(sStr), "Adm.CMD: %s retirou seu Administrador!", pp);
SendClientMessage(gvpid, -1, sStr);
format(sStr, sizeof(sStr), "Adm.CMD: Vocк retirou o Administrador de %s!", pp2);
SendClientMessage(playerid, -1, sStr);
PlayerDados[gvpid][Admin] = 0;
return true;
}
