06.01.2011, 23:05
pawn Код:
dcmd_daradm(playerid, params[])
{
new giveplayerid,tmp[256],idx,level;
tmp = strtok(params, idx);
if(!strlen(tmp))return SendClientMessage(playerid, 0x33AA33AA, "/daradm [playerid] [level]");
giveplayerid = ReturnUser(tmp);
tmp = strtok(params, idx);
if(!strlen(tmp))return SendClientMessage(playerid, 0x33AA33AA, "/daradm [playerid] [level]");
level = strval(tmp);
if (giveplayerid == INVALID_PLAYER_ID) SendClientMessage(playerid, 0x33AA33AA, "Jogador nгo encontrado.");
else
{
SendClientMessage(playerid, 0x33AA33AA, "Level de adm do jogador alterado.");
SendClientMessage(playerid, 0x33AA33AA, "Seu level de adm foi alterado.");
AdminLevel[giveplayerid] = level;
}
return 1;
}