Anti cheat dont working -
Mustafa6155 - 23.12.2012
[/PAWN]
while(w < (sizeof(ForbiddenWeapons))){
if(GetPlayerWeapon(playerid) == w){
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "Banned: %s |How long: Perm |Reason: Weapon hack!", pName);
SendClientMessageToAll(-1, string);
BanEx(playerid, "Weapon Cheat");
}
}
return 1;
}
[/PAWN]
Код:
C:\Users\Mustafa\Desktop\Servers\Gta server\ForYou\gamemodes\TDMNIEUW.pwn(1150) : warning 203: symbol is never used: "ForbiddenWeapons"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
pawn Код:
new ForbiddenWeapons[][] = {
38, //Minigun
35, //RPG
36 //Heatseeking RPG
};
Re: Anti cheat dont working -
willsuckformoney - 23.12.2012
It doesn't work? You tested it?
Re: Anti cheat dont working -
Mustafa6155 - 23.12.2012
Idk i dont want that error
I spawn getting banned
https://sampforum.blast.hk/showthread.php?tid=186988
Re: Anti cheat dont working -
Konstantinos - 23.12.2012
It's warning, not an error. You don't use it to the script, but only here.
pawn Код:
while(w < (sizeof(ForbiddenWeapons)))
Does the anti-cheat work in-game or you've not tested yet due to the warning message?
Re: Anti cheat dont working -
Mustafa6155 - 23.12.2012
I tested but i login in says your banned by weapon cheats :P
Re: Anti cheat dont working -
Mustafa6155 - 23.12.2012
Bump
Re: Anti cheat dont working -
LosAngelesRoleplay - 23.12.2012
Did you implement it wrong? That seems like it would be the only reason why.
Re : Anti cheat dont working -
[HRD]Mar1 - 23.12.2012
Код HTML:
new ForbiddenWeapons[][] = {
38, //Minigun
35, //RPG
36 //Heatseeking RPG
};
Delete it
Re: Anti cheat dont working -
Mustafa6155 - 23.12.2012
Dude if i del that it will getting the same error and not an warning ;(
Re : Anti cheat dont working -
[HRD]Mar1 - 23.12.2012
Код HTML:
stock GetModel(weaponid)
{
for(new i=0; i<sizeof(ForbiddenWeapons); i++)
{
if(weaponid == ForbiddenWeapons[i])
{
return -1;
}
}
switch(weaponid)
{
case 1: return 331;
case 2: return 333;
case 3: return 334;
case 4: return 335;
case 5: return 336;
case 6: return 337;
case 7: return 338;
case 8: return 339;
case 9: return 341;
case 10: return 321;
case 11: return 322;
case 12: return 323;
case 13: return 324;
case 14: return 325;
case 15: return 326;
case 16: return 342;
case 17: return 343;
case 18: return 344;
case 22: return 346;
case 23: return 347;
case 24: return 348;
case 25: return 349;
case 26: return 350;
case 27: return 351;
case 28: return 352;
case 29: return 353;
case 30: return 355;
case 31: return 356;
case 32: return 372;
case 33: return 357;
case 34: return 358;
case 35: return 359;
case 36: return 360;
case 37: return 361;
case 38: return 362;
case 39: return 363;
case 40: return 364;
case 41: return 365;
case 42: return 366;
case 43: return 367;
case 44: return 368;
case 45: return 369;
case 46: return 371;
default: return -1;
}
return -1;
}
Add this to your script