12.04.2013, 14:10
So I want the cmd /setadmin to set a targetid's
It needs to be RCON only, how do i do this?
Код:
pInfo[playerid][AdminLevel] = 1;
pInfo[playerid][AdminLevel] = 1;
new id; // define a new id
pInfo[id][AdminLevel] = 1; // target id will be set
CMD:setadminlevel(playerid, params[])
{
new targetid, level;
if(sscanf(params, "ui", targetid, level)) return SendClientMessage( error message );
else // Other condition checks like IsPlayerConnected( targetid ) (not really needed with "u" specifier
{
pInfo[targetid][Adminlevel] = level;
}
return 1;
}