17.10.2011, 05:17
How can I check if some one is an admin in rcon, i believe its like if(IsPlayerAdmin){ .. or something?
for(new i < MAX_PLAYERS; i < 13; i++)
{
SendClientMessage(playerid, -1,"Rcon Admins");
if(IsPlayerAdmin(playerid))
{
new name[MAX_PLAYER_NAME], string[128];
GetPlayerName(i, name, sizeof(name));
format(string, sizeof(string),"%s[ID: %d]", name, i);
SendClientMessage(playerid, -1, string);
}
}
if(isPlayerAdmin(playerid) {
// Player is an RCON admin
}
for(new i=0; i<MAX_PLAYERS; i++) {
if(isPlayerAdmin(i)) {
// Player i is RCON admin
// Add them to a string, or print their name or w/e here
}
}