Zaključano

Nex AC

Započeo Fetzy.
pre 7 godina
1,362
pregleda
11
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
FetzytB
Rookie
pre 7 godina
Problem(error/warning): Koristim UP mod i pokusavam da ubacim Nex anticit, sve lepo ubacim i compile, ne vadi nikakav error,kad igrac udje ingame spawnuje ga ovde Klik, a kad klikne spawn teleportuje ga na 0,0. Kad izbrisem #include od anticita, sve lepo radi.
Dio skripte: Includovi:

#include
#include
#include
#include
#define FILTERSCRIPT
#include                   

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]//[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): Klik
MilosColbart
Enforcer
pre 7 godina
A sta ti inace hoces da se desi kad klikne SPAWN, ako hoces da ga izbaci sa srva  onda pod OnPlayerRequestSpawn napravis proveru if(UlogovanProvera == 0) return Kick(playerid);
FetzytB
Rookie
pre 7 godina
ShomY071 wrote on December 3, 2018, 2:37 pm:
A sta ti inace hoces da se desi kad klikne SPAWN, ako hoces da ga izbaci sa srva  onda pod OnPlayerRequestSpawn napravis proveru if(UlogovanProvera == 0) return Kick(playerid);

Posle dialoga za login normalno bi bilo da ga spawnuje, ko sto je podeseno u skripti. spawn je skroz na drugim koordinatima i uopste ne treba da klikce na "spawn".
Purda121
OG Legend
pre 7 godina
ShomY071 wrote on December 3, 2018, 2:37 pm:
A sta ti inace hoces da se desi kad klikne SPAWN, ako hoces da ga izbaci sa srva  onda pod OnPlayerRequestSpawn napravis proveru if(UlogovanProvera == 0) return Kick(playerid);

Ne klikce se spawn,ali poenta je da Nex-Ac ne mozes samo ubaciti,njega treba podesiti da fino radi 🙂
FetzytB
Rookie
pre 7 godina
Hashtag.Purda wrote on December 3, 2018, 7:18 pm:
Ne klikce se spawn,ali poenta je da Nex-Ac ne mozes samo ubaciti,njega treba podesiti da fino radi 🙂

Zato i pisem ovde..
Purda121
OG Legend
pre 7 godina
Fetzy. wrote on December 4, 2018, 7:42 pm:
Zato i pisem ovde..

Pa nije problem tebi do lokacije spawna, vec do Nexa opcenito,nisi dobro objasnio problem,tebi treba pomoc da podesis nex-ac , nista drugo 😄
Macas
Enforcer
pre 7 godina
ovo su ti sva podesavanja za nex ac ako nisi cackao include file sve treba da radi kako treba

forward OnCheatDetected(playerid, ip_address[], type, code);
public OnCheatDetected(playerid, ip_address[], type, code)
{
    if(type) BlockIpAddress(ip_address, 0); //Responded to IP (for example for rcon brute) - block him
    else //Responded to the player ID
    {
        switch(code) //What cheat code?
        {
            case 5: return 1; //Teleport unoccupied cars (ac in any case will return it to its original pos, the punishment shouldn't do)
            case 11: //Repair car, it is better to return the old hp (if cheater will not set old hp - anti-nop will detect him)
            {
                new vehid = GetPlayerVehicleID(playerid), Float:vhealth;
                AntiCheatGetVehicleHealth(vehid, vhealth);
                SetVehicleHealth(vehid, vhealth);
                return 1;
            }
            case 14: //Money
            {
                //Here is your code
                /*
                //Return the old money
                new a = AntiCheatGetMoney(playerid);
                ResetPlayerMoney(playerid);
                GivePlayerMoney(playerid, a);
                return 1; //We don't need another punishment
                */
            }
            case 32: return ClearAnimations(playerid, 1); //CarJack, remove player from vehicle
            case 40: SendClientMessage(playerid, -1, MAX_CONNECTS_MSG); //Sandbox (connect 2 or more people from the same IP), say goodbye
            case 41: SendClientMessage(playerid, -1, UNKNOWN_CLIENT_MSG); //Unknown client version, say goodbye to him
            case 43..47: //Crashers
            {
                Kick(playerid); //It is HIGHLY recommended to kick without delay, otherwise IT will have time to crash players
                return 1;
            }
            default: //All others cheats
            {
                static strtmp[sizeof KICK_MSG];
                format(strtmp, sizeof strtmp, KICK_MSG, code); //Another way to say goodbye
                SendClientMessage(playerid, -1, strtmp);
            }
        }
        new pPing = GetPlayerPing(playerid) + 150;
        SetTimerEx("ac_KickTimer", (pPing > 500 ? 500 : pPing), false, "i", playerid); //ac_KickTimer is already in anticheat and successfully will be called
    }
    return 1;
}
Makenzi
Hustler
pre 7 godina
Slusaj batice, nex-ac mora da se include prvi posle a_samp, ako pravi problema jos javi
Macas
Enforcer
pre 7 godina
Makenzi wrote on December 4, 2018, 9:35 pm:
Slusaj batice, nex-ac mora da se include prvi posle a_samp, ako pravi problema jos javi

Pravice problem jer se includa uvek zadnji, jeste da pise
In gamemode and all filterscripts, after "#include " write the following:"#include " 
ali pise jos ispod toga
Warning! If you use Streamer Plugin by Incognito, Timerfix plugin by Dan, foreach, sscanf, Pawn.RakNet or y_hooks, include it before nex-ac!
Also keep in mind that filterscript must have "#define FILTERSCRIPT" before including the anticheat


a koliko vidim po njegovom includu:
#include 
#include
#include
  🙂
Makenzi
Hustler
pre 7 godina
rizla wrote on December 4, 2018, 9:40 pm:
Pravice problem jer se includa uvek zadnji, jeste da pise
In gamemode and all filterscripts, after "#include " write the following:"#include " 
ali pise jos ispod toga
Warning! If you use Streamer Plugin by Incognito, Timerfix plugin by Dan, foreach, sscanf, Pawn.RakNet or y_hooks, include it before nex-ac!
Also keep in mind that filterscript must have "#define FILTERSCRIPT" before including the anticheat


a koliko vidim po njegovom includu:
#include 
#include
#include
  🙂

Pa ja sam procitao samo prvi deo... XD
No ne znam, nisam imao tih problema
FetzytB
Rookie
pre 7 godina
rizla wrote on December 4, 2018, 8:17 pm:
ovo su ti sva podesavanja za nex ac ako nisi cackao include file sve treba da radi kako treba

forward OnCheatDetected(playerid, ip_address[], type, code);
public OnCheatDetected(playerid, ip_address[], type, code)
{
    if(type) BlockIpAddress(ip_address, 0); //Responded to IP (for example for rcon brute) - block him
    else //Responded to the player ID
    {
        switch(code) //What cheat code?
        {
            case 5: return 1; //Teleport unoccupied cars (ac in any case will return it to its original pos, the punishment shouldn't do)
            case 11: //Repair car, it is better to return the old hp (if cheater will not set old hp - anti-nop will detect him)
            {
                new vehid = GetPlayerVehicleID(playerid), Float:vhealth;
                AntiCheatGetVehicleHealth(vehid, vhealth);
                SetVehicleHealth(vehid, vhealth);
                return 1;
            }
            case 14: //Money
            {
                //Here is your code
                /*
                //Return the old money
                new a = AntiCheatGetMoney(playerid);
                ResetPlayerMoney(playerid);
                GivePlayerMoney(playerid, a);
                return 1; //We don't need another punishment
                */
            }
            case 32: return ClearAnimations(playerid, 1); //CarJack, remove player from vehicle
            case 40: SendClientMessage(playerid, -1, MAX_CONNECTS_MSG); //Sandbox (connect 2 or more people from the same IP), say goodbye
            case 41: SendClientMessage(playerid, -1, UNKNOWN_CLIENT_MSG); //Unknown client version, say goodbye to him
            case 43..47: //Crashers
            {
                Kick(playerid); //It is HIGHLY recommended to kick without delay, otherwise IT will have time to crash players
                return 1;
            }
            default: //All others cheats
            {
                static strtmp[sizeof KICK_MSG];
                format(strtmp, sizeof strtmp, KICK_MSG, code); //Another way to say goodbye
                SendClientMessage(playerid, -1, strtmp);
            }
        }
        new pPing = GetPlayerPing(playerid) + 150;
        SetTimerEx("ac_KickTimer", (pPing > 500 ? 500 : pPing), false, "i", playerid); //ac_KickTimer is already in anticheat and successfully will be called
    }
    return 1;
}

Nisam dirao nista u vezi spawna u include fajlu za anticit
Hashtag.Purda wrote on December 4, 2018, 8:01 pm:
Pa nije problem tebi do lokacije spawna, vec do Nexa opcenito,nisi dobro objasnio problem,tebi treba pomoc da podesis nex-ac , nista drugo 😄

Problem je u tome sto hocu da se koristi spawn koji sam ja definisao u skripti, a ne spawn koji sam spomenuo gore, takodje necu da klikce spawn da bi se spawnovao, nego pri samog gasenja dialoga gde upise password da ga spawnuje.

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava