Anticheat - Reaction Test
#1

In my server i have a system where it says "First one to type %d Wins Minigun"
Ive coded that but i need it so my anticheat dont ban me.

So what i did was when you win the weapon:

Wonweapon[playerid] = 1;

So when its 1 the anticheat does not ban you

That works but i needed it so when you have no minigun ammo left it does

Wonweapon[playerid] = 0;

So when its 0 it is possible for the anticheat to ban you

So i had to make a timer / public here is my atempt but itbans you but when i comment it out it dont ban you so this is the problem

Thanks!

http://pastebin.com/m348967aa
Reply
#2

Oops, Sorry didn't read properly.

Use: GetPlayerWeaponData to check if the slot for a minigun is filled, then if it isn't filled set it back to 0.

The Slot is 7 for heavy weapons (Rocketlaunchers, miniguns etc...)
Reply
#3

Can you show me an example please?
Reply
#4

Double post sorry
Reply
#5

pawn Код:
new weaponid = GetPlayerWeapon(playerid);
if(weaponid == 38 && WonWeapon[playerid] == 0) Ban(playerid);
This checks if the player has a minigun and if the person has won the weapon, in this case they haven't so it bans them.
Reply
#6

So the public where it changes it back to WonWeapon 0; is fine?
Reply
#7

Anybody please help?
Reply
#8

I don't know if weapon ammo is synched up now or what.... but what's easiest is to give the player a minigun with a timer and take it away. In the timer you can set the value back to 0.

Reply


Forum Jump:


Users browsing this thread: