[HELP]/admins <Show current admins online by ID, Name, Rank and Duty>
#4

Quote:
Originally Posted by Biesmen
View Post
pawn Code:
if(strcmp(cmd, "/admins", true) == 0)
{
    SendClientMessage(playerid, COLOR_RED, " ** Admins online: **");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerInfo[i][pAdmin] >= 1)
            {
                GetPlayerName(i, sendername, sizeof(sendername));
                format(string, 100, "%s: %s ( %s ) Duty: %s", PlayerInfo[i][pAdmin], sendername, i, PlayerInfo[i][pAOnDuty]);
                SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
            }
        }
    }
    return 1;
}
first of all you don't know what kind of script he has maybe how he wrote it's ok and why %s on player's id?
%s is for string
%f float
%d number
%c character....
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)