PARTNERI:

* Marketing

-UPOZORENJE-

Samo registrovani članovi mogu da vide/koriste forum u celini.
Prijavite se ili registrujte nalog na Balkan SA-MP forumu.


Autor Tema: [Pomoć] Nex AC  (Pročitano 239 puta)

0 članova i 1 gost pregledaju ovu temu.

Van mreže Fetzy.

Nex AC
« poslato: Decembar 03, 2018, 15:09:00 posle podne »
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:
Pawno Code: [Izaberi]
#include <a_samp>
#include <foreach>
#include <streamer>
#include <YSI\y_timers>
#define FILTERSCRIPT
#include                    <nex-ac>
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]//[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): Klik
 

Van mreže ShomY071

Odg: Nex AC
« Odgovor #1 poslato: Decembar 03, 2018, 15:37:25 posle podne »
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[playerid] == 0) return Kick(playerid);
 

Van mreže Fetzy.

Odg: Nex AC
« Odgovor #2 poslato: Decembar 03, 2018, 16:01:52 posle podne »
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[playerid] == 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".
 

Na mreži Hashtag.Purda

Odg: Nex AC
« Odgovor #3 poslato: Decembar 03, 2018, 20:18:28 posle podne »
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[playerid] == 0) return Kick(playerid);
Ne klikce se spawn,ali poenta je da Nex-Ac ne mozes samo ubaciti,njega treba podesiti da fino radi :)

Van mreže Fetzy.

Odg: Nex AC
« Odgovor #4 poslato: Decembar 04, 2018, 20:42:09 posle podne »
Ne klikce se spawn,ali poenta je da Nex-Ac ne mozes samo ubaciti,njega treba podesiti da fino radi :)
Zato i pisem ovde..
 

Na mreži Hashtag.Purda

Odg: Nex AC
« Odgovor #5 poslato: Decembar 04, 2018, 21:01:09 posle podne »
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 :D

Na mreži rizla

Odg: Nex AC
« Odgovor #6 poslato: Decembar 04, 2018, 21:17:30 posle podne »
ovo su ti sva podesavanja za nex ac ako nisi cackao include file sve treba da radi kako treba
Pawno Code: [Izaberi]
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;
}
 

Van mreže Makenzi

Odg: Nex AC
« Odgovor #7 poslato: Decembar 04, 2018, 22:35:34 posle podne »
Slusaj batice, nex-ac mora da se include prvi posle a_samp, ako pravi problema jos javi
Pomogao sam ti?
- Zahvali se!



 

Na mreži rizla

Odg: Nex AC
« Odgovor #8 poslato: Decembar 04, 2018, 22:40:53 posle podne »
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 <a_samp>" write the following:"#include <nex-ac>" 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:
Pawno Code: [Izaberi]
#include <foreach>
#include <streamer>
#include <YSI\y_timers>
  :)
 

Van mreže Makenzi

Odg: Nex AC
« Odgovor #9 poslato: Decembar 04, 2018, 22:43:47 posle podne »
Pravice problem jer se includa uvek zadnji, jeste da pise In gamemode and all filterscripts, after "#include <a_samp>" write the following:"#include <nex-ac>" 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:
Pawno Code: [Izaberi]
#include <foreach>
#include <streamer>
#include <YSI\y_timers>
  :)
Pa ja sam procitao samo prvi deo... XD
No ne znam, nisam imao tih problema
Pomogao sam ti?
- Zahvali se!



 

Van mreže Fetzy.

Odg: Nex AC
« Odgovor #10 poslato: Decembar 06, 2018, 13:32:41 posle podne »
ovo su ti sva podesavanja za nex ac ako nisi cackao include file sve treba da radi kako treba
Pawno Code: [Izaberi]
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
Pa nije problem tebi do lokacije spawna, vec do Nexa opcenito,nisi dobro objasnio problem,tebi treba pomoc da podesis nex-ac , nista drugo :D
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.