/admins cmd? +1 REP!
#1

Hello people, im using zCmd, and how could I make an command like this?

Just give me an simple example and ill replace with my playerinfo, enums etc
Reply
#2

Admins in client messages? or in a dialog?


anyway something like that

pawn Код:
YourCommandProcessor.admins(playerid,params[])
{
    new adminCount,string[128];
    foreach(new i : Player) {
        if(plaervar[i][adminlevel] > 0) {
            format(string,sizeof(string),"Admin %s level %d",yourGetNameFunction(i),plaervar[i][adminlevel]);
            SendClientMessage(playerid,-1,string);
            adminCount++;
        }
    }
    if(adminCount == 0) SendClientMessage(playerid,-1,"There is no admin online!");
    return 1;
}
Reply
#3

Why don't go through some tutorials on ZCMD?
[Tutorial] ZCMD - Commands collection [PART 1]
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)