Jump to content

As avea nevoie de ajutor cu comanda /admins


Ligh113

Recommended Posts

Salut , as avea nevoie de putin ajutor pentru a edita comanda /admins . As vrea ca cand dai /admins sa iti raspunda pe chat in felul urmator : { admin level } {username} - grad-ul ce il detine pe server. ( admin 7 scripter ; admin 8 fondator etc )

Cine poate sa ma ajute va rog un reply sau mesaj in privat. 
 

Link to comment
Share on other sites

Faci 2 stock-uri mai jos de comanda '/admins'.

 

Citat

 

stock GetAdminRank(playerid) {
    new string[180];
    switch(PlayerInfo[playerid][pAdmin]) {
        case 1: string = "Admin 1";
        case 2: string = "Admin 2";
        case 3: string = "Admin 3";
        case 4: string = "Co-Owner";
        case 5: string = "Owner";
        case 6: string = "Fondator";
        case 7: string = "{FF0000}Fondator / Scripter";
    }
    return string;
}

stock GetAdminRank2(admid) {
    new string[180];
    switch(admid) {
        case 1: string = "Admin 1";
        case 2: string = "Admin 2";
        case 3: string = "Admin 3";
        case 4: string = "Co-Owner";
        case 5: string = "Owner";
        case 6: string = "Fondator";
        case 7: string = "{FF0000}Fondator / Scripter";
    }
    return string;
}

 

Bun , aici poti sa-ti modifici tu gradele.

 

Acum mergi la comanda /admin , faci un loop in felul urmator :

 

Citat

Creezi 2 variablile : new string[128], count;

 

Citat

foreach(Player,i) {
                if(PlayerInfo[pAdmin] == j && GetPVarInt(i, "Cover") == 0) {
                    format(string, sizeof(string), "%s %s (%d)", GetAdminRank(i), GetName(i),i);
                    SendClientMessage(playerid, COLOR_WHITE, string);
                    count++;
                }

 

Cam asa ar trebui sa arate.

 

Sper ca ti-am fost de ajutor.

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.