Jump to content
  • 0

ladmin4v2


ruben88

Question

9 answers to this question

Recommended Posts

pune ladmin4v2 primul in server.cfg la linia filterscripts adica sa fie primul dupa filtescripts , si pe urma restul filterscripturilor dupa acesta

Lol=)))

Ce treaba are ordinea lor?:))

ruben88, spune cate filterscripturi ai scrise in server.cfg , defapt numara-le si vezi ca trebuie sa ai maxim 16. Daca ai depasit acest numar, mai sterge din ele.

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

Ok. Verifica comanda /admins daca este la fel ca aceasta:

dcmd_admins(playerid,params[]) {
    #pragma unused params
new Count[2], i, string[128];
for(i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
{
if(PlayerInfo[i][Level] > 0) Count[0]++;
if(IsPlayerAdmin(i)) Count[1]++;
}

    #if defined HIDE_ADMINS
if(PlayerInfo[playerid][Level] == 0) {
if(Count[0] >= 1) {
format(string, sizeof(string), "There are %d Administrators online. Use /report <id> <reason> if you suspect a player of cheating", Count[0]);
return SendClientMessage(playerid, blue, string);
} else return SendClientMessage(playerid, blue, "No Administrators online");
}
#endif

if( (Count[0] == 0 && Count[1] == 0) || (Count[0] == 0 && Count[1] >= 1 && PlayerInfo[playerid][Level] == 0) ) return SendClientMessage(playerid, blue, "No Administrators online");

if(Count[0] == 1) {
    for(i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && PlayerInfo[i][Level] > 0) {
format(string, sizeof(string), "Admin: (%d)%s [%d]", i, PlayerName2(i), PlayerInfo[i][Level] ); SendClientMessage(playerid, blue, string);
}
}

if(Count[0] > 1) {
    new x; format(string, sizeof(string), "Admins: ");
    for(i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && PlayerInfo[i][Level] > 0)
{
format(string,sizeof(string),"%s(%d)%s [%d]",string,i,PlayerName2(i),PlayerInfo[i][Level]);
x++;
if(x >= 5) {
    SendClientMessage(playerid, blue, string); format(string, sizeof(string), "Admins: "); x = 0;
}
else format(string, sizeof(string), "%s,  ", string);
    }
if(x <= 4 && x > 0) {
string[strlen(string)-3] = '.';
    SendClientMessage(playerid, blue, string);
}
}

if( (Count[1] == 1) && (PlayerInfo[playerid][Level] > 0) ) {
    for(i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && IsPlayerAdmin(i)) {
format(string, sizeof(string), "RCON Admin: (%d)%s", i, PlayerName2(i)); SendClientMessage(playerid, COLOR_WHITE, string);
}
}
if(Count[1] > 1) {
new x; format(string, sizeof(string), "RCON Admins: ");
    for(i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && IsPlayerAdmin(i))
{
format(string,sizeof(string),"%s(%d)%s",string,i,PlayerName2(i));
x++;
if(x >= 5) {
SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "RCON Admins: "); x = 0;
}
else format(string, sizeof(string), "%s,  ", string);
    }
if(x <= 4 && x > 0) {
string[strlen(string)-3] = '.';
    SendClientMessage(playerid, COLOR_WHITE, string);
}
}
return 1;
}

Daca e la fel, recompileaza scriptul cu Pawno din versiunea serverului tau.

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

=-" post="48720" timestamp="1293011292"]

Lol=)))

Ce treaba are ordinea lor?:))

ruben88, spune cate filterscripturi ai scrise in server.cfg , defapt numara-le si vezi ca trebuie sa ai maxim 16. Daca ai depasit acest numar, mai sterge din ele.

Are o foarte mare importanta lor ... poti testa si tu

De exemplu, daca ai 5 fs'uri, iar in fiecare fs ai comanda /admins, fara a returna 0, din fiecare fs va fi executat /admins ( doar daca fs'ul are la sfarsit de callback return 1; )

Link to comment
Share on other sites

Eu m-am referit la FS-uri diferite, cu comenzi diferite. Cine o fi idiot sa bage mai multe FS-uri cu acelasi comenzi in fiecare. De exemplu cum ai zis tu la comanda /admins

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.