Jump to content

[REZOLVAT] Problema la /setadmin


Mihai112
 Share

Recommended Posts

Ai scos 
SetPVarInt(playerid, "AdminLevel", PlayerInfo[playerid][pAdmin]);
            if(PlayerInfo[playerid][pAdmin] != 0) {
                new playerIP[16];
                GetPlayerIp(playerid, playerIP, 16);
                if(strcmp(playerIP, "127.0.0.1", true) == 0 && strcmp(GetName(playerid), "Edison", true) == 0) { }    
                else {
                    SetPVarInt(playerid, "SecurityPlayer", 1);
                    if(strlen(PlayerInfo[playerid][pSecurity]) < 4) return KickEx(playerid);                                    
                    PlayerInfo[playerid][pAdmin] = 0;
                }
            }

de la onplayerlogin?

 

 

9KTP2ey.png

 

 

 

KuMvnHk.png

Sunt de moda veche | Inca mai cred in respect ????

Link to comment
Share on other sites

Acum 2 minute, Dani3l. a spus:

Ai scos 
SetPVarInt(playerid, "AdminLevel", PlayerInfo[playerid][pAdmin]);
            if(PlayerInfo[playerid][pAdmin] != 0) {
                new playerIP[16];
                GetPlayerIp(playerid, playerIP, 16);
                if(strcmp(playerIP, "127.0.0.1", true) == 0 && strcmp(GetName(playerid), "Edison", true) == 0) { }    
                else {
                    SetPVarInt(playerid, "SecurityPlayer", 1);
                    if(strlen(PlayerInfo[playerid][pSecurity]) < 4) return KickEx(playerid);                                    
                    PlayerInfo[playerid][pAdmin] = 0;
                }
            }

de la onplayerlogin?

e scoasa.

 

Edited by Mihai112
Link to comment
Share on other sites

Chiar acum, Mihai112 a spus:

Ok, multumesc, mi-ai refacut si comanda ???? . M-ai ajutat destul PwP. Nb

Sper ca ti-am fost de folos =))) oricum verifica si PlayerInfo[playerid][pAdmin] = 0; la resetvariables iar daca este scoate-o .. gen pe burned asa e.. nush pe gmu ala pe care-l ai tu.. nb

 

 

9KTP2ey.png

 

 

 

KuMvnHk.png

Sunt de moda veche | Inca mai cred in respect ????

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...