12.01.2015, 19:01
Troque
Por:
pawn Код:
CMD:setadmin(playerid, params[])
{
new String[100], levels;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "Vocк precisa logar na RCON.");
if(sscanf(params, "ud", giveplayerid, levels)) return SendClientMessage(playerid, 0xAD0000AA, "Use /setadmin [id] [level]");
if (levels < 0 || levels > 4) return SendClientMessage(playerid, 0xFF0000FF, "Level invбlido. Use de 1 б 4 .");
if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, 0xAD0000AA, "Este jogador nгo estб online.");
Player[giveplayerid][pAdmin] = levels;
return 1;
}
pawn Код:
CMD:setadmin(playerid, params[])
{
new String[100], pID, levels;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "Vocк precisa logar na RCON.");
if(sscanf(params, "ud", pID, levels)) return SendClientMessage(playerid, 0xAD0000AA, "Use /setadmin [id] [level]");
if (levels < 0 || levels > 4) return SendClientMessage(playerid, 0xFF0000FF, "Level invбlido. Use de 1 б 4 .");
if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, 0xAD0000AA, "Este jogador nгo estб online.");
Player[pID][pAdmin] = levels;
return 1;
}