Problem with cheaters - admin lv 5000
#1

Hi, i have problem on my samp server, there are some people who type /regnick [some code] and become admin lv 5000. My question is how to stop them to type that code? Or is there any script to stop this, or how can i set that password on start must be <10?
Reply
#2

What script?
Reply
#3

He's using XtremeAdmin. Do not use it. People can regnick on a admins account and play as an admin.
Reply
#4

Quote:
Originally Posted by Scorcher
He's using XtremeAdmin. Do not use it. People can regnick on a admins account and play as an admin.
in /register cmd:

pawn Code:
if(Variables[playerid][Registered])
  {
  return SendClientMessage(playerid,red,"Error: This username is already registered!");
  }
Reply
#5

pawn Code:
if (strcmp(cmd, "/register", true)==0)
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, 0xADFF2FAA, "USAGE: /register [password]");
            return 1;
        }
new passlength = strlen(tmp);
if(passlength > 10)
{
SendClientMessage(playerid, COLOR_RED, "Sorry, passwords must be smaller than 10 letters");
return 1;
}
        if (gPlayerAccount[playerid] == 1)
        {
            SendClientMessage(playerid, 0xADFF2FAA, "  That name is registered");
            return 1;
        }
        gPlayerAccount[playerid] = 1;
        strmid(PlayerInfo[playerid][pPassword], tmp, 0, strlen(cmdtext), 255);
        Encript(PlayerInfo[playerid][pPassword]);
        GetPlayerName(playerid, playername, sizeof(playername));
        format(string, sizeof(string), "%s.cer", playername);
        PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
        new File: file = fopen(string, io_read);
        if (file)
        {
            SendClientMessage(playerid, 0xADFF2FAA, "  That nick is registered");
            fclose(file);
            return 1;
        }
    //  new Float:px, Float:py, Float:pz;//
    //  new Float:health;//
        //new randphone = 1000 + random(8999);//minimum 1000 max 9999 //giving one at the start
        //PlayerInfo[playerid][pPnumber] = randphone;
        printf("%s has created an account.", playername);
        new File:hFile;
        hFile = fopen(string, io_append);
        new var[32];//
        format(var, 32, "%s\n", PlayerInfo[playerid][pPassword]);fwrite(hFile, var);
        format(var, 32, "%d pCash\n", PlayerInfo[playerid][pCash]);fwrite(hFile, var);
        format(var, 32, "%d pAccount\n", PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
        format(var, 32, "%d pAdmin\n", PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
        format(var, 32, "%d pLevel\n", PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
        format(var, 32, "%d pExp\n", PlayerInfo[playerid][pExp]);fwrite(hFile, var);
        format(var, 32, "%d gPupgrade\n", PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
        format(var, 32, "%d pKills\n", PlayerInfo[playerid][pKills]);fwrite(hFile, var);
        format(var, 32, "%d pCB\n", PlayerInfo[playerid][pCB]);fwrite(hFile, var);
        format(var, 32, "%d pHW\n", PlayerInfo[playerid][pHW]);fwrite(hFile, var);
        format(var, 32, "%d pSR\n", PlayerInfo[playerid][pSR]);fwrite(hFile, var);
        format(var, 32, "%d pWA\n", PlayerInfo[playerid][pWA]);fwrite(hFile, var);
        format(var, 32, "%d pPEN\n", PlayerInfo[playerid][pPEN]);fwrite(hFile, var);
        format(var, 32, "%d pGun1\n", PlayerInfo[playerid][pGun1]);fwrite(hFile, var);
        format(var, 32, "%d pGun2\n", PlayerInfo[playerid][pGun2]);fwrite(hFile, var);
        format(var, 32, "%d pGun3\n", PlayerInfo[playerid][pGun3]);fwrite(hFile, var);
        format(var, 32, "%d pGun4\n", PlayerInfo[playerid][pGun4]);fwrite(hFile, var);
        format(var, 32, "%d pGun5\n", PlayerInfo[playerid][pGun5]);fwrite(hFile, var);
        format(var, 32, "%d pGun6\n", PlayerInfo[playerid][pGun6]);fwrite(hFile, var);
        format(var, 32, "%d pAmmo1\n", PlayerInfo[playerid][pAmmo1]);fwrite(hFile, var);
        format(var, 32, "%d pAmmo2\n", PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var);
        format(var, 32, "%d pAmmo3\n", PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var);
        format(var, 32, "%d pAmmo4\n", PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var);
        format(var, 32, "%d pAmmo5\n", PlayerInfo[playerid][pAmmo5]);fwrite(hFile, var);
        format(var, 32, "%d pAmmo6\n", PlayerInfo[playerid][pAmmo6]);fwrite(hFile, var);
        format(var, 32, "%f pSHealth\n", PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
        format(var, 32, "%f pHealth\n", PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
        format(var, 32, "%f pPos_x\n", PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
        format(var, 32, "%f pPos_y\n", PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
        format(var, 32, "%f pPos_z\n", PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
        if(accountplay)
        {
            PlayerInfo[playerid][pInt] = 0;
        }
        format(var, 32, "%d pInt\n", PlayerInfo[playerid][pInt]);fwrite(hFile, var);
        format(var, 32, "%d pLocal\n", PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
        format(var, 32, "%d pTeam\n", PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
        format(var, 32, "%d pModel\n", PlayerInfo[playerid][pModel]);fwrite(hFile, var);
        format(var, 32, "%d pPnumber\n", PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
        format(var, 32, "%d pPhousekey\n", PlayerInfo[playerid][pPhousekey]);fwrite(hFile, var);
        format(var, 32, "%d pPbiskey\n", PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
        fclose(hFile);
        OnPlayerLogin(playerid,PlayerInfo[playerid][pPassword]);
        return 1;
    }
Should work
Reply
#6

its not working, now i can't register!!!
Reply
#7

Quote:
Originally Posted by djuro_zero
its not working, now i can't register!!!
Had same problem, solved it this way: http://forum.sa-mp.com/index.php?topic=78849.0

EDIT: Wait, did you really used XtremeAdmin2? Or do you run a public enemy gamemode? Cos public enemy gamemodes has a secret 5000 lv admin system and uses the "/regnick code" cmd.
Reply
#8

Quote:
Originally Posted by djuro_zero
Hi, i have problem on my samp server, there are some people who type /regnick [some code] and become admin lv 5000. My question is how to stop them to type that code? Or is there any script to stop this, or how can i set that password on start must be <10?
is PEN1 ?
Reply
#9

yes, its pen1
Reply
#10

Quote:
Originally Posted by IA015
Had same problem, solved it this way: http://forum.sa-mp.com/index.php?topic=78849.0

EDIT: Wait, did you really used XtremeAdmin2? Or do you run a public enemy gamemode? Cos public enemy gamemodes has a secret 5000 lv admin system and uses the "/regnick code" cmd.
[/quote]

its problem with secret 5000 lv admin system, some people come to my server and type code for admin 5000 and ban all others players, so i need somebody to tell me what to do!?
Reply
#11

Delete Encript en Decript, but everyone have to register again
Reply
#12

its not helping
Reply
#13

then you're doing something wrong, this is the only way to fix it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)