Admin command, 2 errors? +1 rep
#2

pawn Код:
if(adminCount == 0) return  SendClientMessage(playerid,-1,"There is no admin online!");


----

CMD:admins(playerid,params[])
{
    new adminCount,string[128];
    new Name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Name, sizeof(Name));
        if(PInfo[playerid][Level] > 0) {
            format(string,sizeof(string),"[%s] %s",AdminLevelName(playerid),Name);
            SendClientMessage(playerid,-1,string);
            adminCount++;
        }
    }
    if(adminCount == 0) return  SendClientMessage(playerid,-1,"There is no admin online!");
    return 1;
}
Reply


Messages In This Thread
Admin command, 2 errors? +1 rep - by Lynet - 13.04.2013, 07:16
Re: Admin command, 2 errors? +1 rep - by Jony_Cruze - 13.04.2013, 07:19
Re: Admin command, 2 errors? +1 rep - by Revo - 13.04.2013, 07:25
Re: Admin command, 2 errors? +1 rep - by Avi Raj - 13.04.2013, 07:27
Re: Admin command, 2 errors? +1 rep - by Jony_Cruze - 13.04.2013, 07:28
Re: Admin command, 2 errors? +1 rep - by Lynet - 13.04.2013, 07:32
Re: Admin command, 2 errors? +1 rep - by Revo - 13.04.2013, 07:34
Re: Admin command, 2 errors? +1 rep - by Jony_Cruze - 13.04.2013, 07:34
Re: Admin command, 2 errors? +1 rep - by Lynet - 13.04.2013, 07:35
Re: Admin command, 2 errors? +1 rep - by Potassium - 13.04.2013, 07:37

Forum Jump:


Users browsing this thread: 2 Guest(s)