Započeo Fetzy.
•3. Dec. 2018.• ZaključanoNex AC
1,504
pregleda
11
postova
3. Dec. 2018.
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:
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]//[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): Klik
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
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
240
Postovi:
36
Teme:
Pridružio se:Dec. 2014
3. Dec. 2018.
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);
3. Dec. 2018.
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".
OG Legend
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosAktivan Član
0 / 250 XP
Početnik(0)
3,314
Postovi:
92
Teme:
Pridružio se:Jun 2016
3. Dec. 2018.
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 🙂
OG Legend
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosAktivan Član
0 / 250 XP
Početnik(0)
3,314
Postovi:
92
Teme:
Pridružio se:Jun 2016
4. Dec. 2018.
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 😄
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
287
Postovi:
48
Teme:
Pridružio se:Okt. 2015
4. Dec. 2018.
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;
}Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
287
Postovi:
48
Teme:
Pridružio se:Okt. 2015
4. Dec. 2018.
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 togaWarning! 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 anticheata koliko vidim po njegovom includu:
#include
#include
#include
🙂Hustler
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
86
Postovi:
4
Teme:
Pridružio se:Nov. 2018
4. Dec. 2018.
rizla wrote on December 4, 2018, 9:40 pm:
Pravice problem jer se includa uvek zadnji, jeste da pise
a koliko vidim po njegovom includu:
In gamemode and all filterscripts, after "#include " write the following:"#include " ali pise jos ispod togaWarning! 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 anticheata koliko vidim po njegovom includu:
#include
#include
#include
🙂Pa ja sam procitao samo prvi deo... XD
No ne znam, nisam imao tih problema
6. Dec. 2018.
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