Nex AC

Započeo Fetzy., Decembar 03, 2018, 15:09:00 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

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:
[pawn]
#include               <a_samp>
#include               <foreach>
#include               <streamer>
#include               <YSI\y_timers>
#define FILTERSCRIPT
#include                    <nex-ac> [/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]//[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): Klik

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);

Citat: ShomY071 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);
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".

Citat: ShomY071 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);
Ne klikce se spawn,ali poenta je da Nex-Ac ne mozes samo ubaciti,njega treba podesiti da fino radi :)

Citat: Hashtag.Purda poslato Decembar 03, 2018, 20:18:28 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..

Citat: Fetzy. poslato Decembar 04, 2018, 20:42: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

ovo su ti sva podesavanja za nex ac ako nisi cackao include file sve treba da radi kako treba
[pawn]
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;
}[/pawn]

Slusaj batice, nex-ac mora da se include prvi posle a_samp, ako pravi problema jos javi
Pomogao sam ti?
- Zahvali se!





Citat: Makenzi 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
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:
[pawn]#include <foreach>
#include <streamer>
#include <YSI\y_timers>
[/pawn]  :)

Citat: rizla poslato Decembar 04, 2018, 22:40:53 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:
[pawn]#include <foreach>
#include <streamer>
#include <YSI\y_timers>
[/pawn]  :)
Pa ja sam procitao samo prvi deo... XD
No ne znam, nisam imao tih problema
Pomogao sam ti?
- Zahvali se!





Citat: rizla 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
[pawn]
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;
}[/pawn]
Nisam dirao nista u vezi spawna u include fajlu za anticit
Citat: Hashtag.Purda poslato Decembar 04, 2018, 21:01:09 POSLE PODNE
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.