Silver_Dragon Regular Member
Posts : 23 Points : 33 Reputation : 3 Join date : 2013-08-12 Age : 27 Location : Germany In-game username : Silver_Dragon
| Subject: Server Anticheat Sat Jan 24, 2015 11:31 am | |
| DISCLAMER: I dont say the Anticheat sucks it is a bug report. Edit: i fagott to add a command that send the Text. (derp ) Hello, I have found some glitch in the antiwepaonhax. 2 Example's: Picture from 24.01.2015 12:30or "[SYSTEM]: PlayerX got Baned for Weaponhacks(560) #a%ยง\)" I dont know waht is cause but i think it try to show the Weaponname. I have a script code that works fine _______ Code: public OnPlayerUpdate(playerid) // or use a Timer, OnPlayerUpdate can cause laggs on some players { new CurrWeapon[MAX_PLAYERS]; // Var.
CurrWeapon[playerid] = GetPlayerWeapon(playerid); // Get's the current holding Weapon from the player.
if(CurrWeapon[playerid] == WEAPON_MINIGUN || CurrWeapon[playerid] == WEAPON_KNIFE || CurrWeapon[playerid] == WEAPON_ROCKETLAUNCHER) //Not allowed Guns(like Minigun, RocketLAUNCHER,Knife) { new WeaponText[100]; format(WeaponText,sizeof(WeaponText),"[System]: %s has been Baned for Weaponhacks (WeaponID: %i)",PlayerName(playerid),CurrWeapon[playerid]); // can Mod the Text it shows (ONLY the weaponid) BanEx(playerid,"Weaponhax"); //Baned! SendClientMessageToAll(COLOR,WeaponText); //Send The Text (COLOR = Haxcolor pick with samp colorpicker) } else {return 1;} // If not "Hacking" nothing will happens to the Player.
return 1; }
stock PlayerName(playerid) // Gets the Name of the Player, usefull! { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); return name; }___________ This code Bans the Player if the hack a "Locked" Gun. It shows like this: "[System]: PlayerX has been Baned for Weaponhacks (WeaponID: 38)". i hope its usefull. I look forward to reading all your comments -Silver
Last edited by Silver_Dragon on Sun Jan 25, 2015 8:29 am; edited 5 times in total | |
|
PunkLorD Head Administrator
Posts : 833 Points : 1096 Reputation : 21 Join date : 2012-05-09 Age : 26 Location : Qatar
| Subject: Re: Server Anticheat Sat Jan 24, 2015 2:19 pm | |
| Wrong section man, moved this to "Bug report". And also, I think Faqahat is already well aware of this and would fix it eventually in the upcoming versions. | |
|
Silver_Dragon Regular Member
Posts : 23 Points : 33 Reputation : 3 Join date : 2013-08-12 Age : 27 Location : Germany In-game username : Silver_Dragon
| Subject: Re: Server Anticheat Sat Jan 24, 2015 7:29 pm | |
| @PunkLord, ty for the reply.
Today (24.01.15) it says "baned for Weaponhack(0) // Weaponid 0 = Fist 0.o
but good to know that it will be (mabye) fixet soon. | |
|
Sponsored content
| Subject: Re: Server Anticheat | |
| |
|