[FilterScript] [FS] Antibug "+C"
#1

Here my way of struggle against users of bugs "+ crouch"
(sorry for my bad English)

Код:
#include <a_samp>

#define RELEASED(%0) \
	(((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
	
new PlayerUsingBug[MAX_PLAYERS];
new PlayerBugTimer[MAX_PLAYERS];

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if(IsBugWeapon(playerid) && RELEASED(KEY_FIRE)){
 		PlayerUsingBug[playerid] = 1;
		PlayerBugTimer[playerid] = SetTimerEx("BugTimeOut",1000,0,"i",playerid);
	}
	if(PlayerUsingBug[playerid]==1 && newkeys != KEY_FIRE && newkeys & KEY_CROUCH){
		ApplyAnimation(playerid,"PED","getup",4.1,0,0,0,0,0);
	 	PlayerUsingBug[playerid] = 0;
		KillTimer(PlayerBugTimer[playerid]);
	}
	return true;
}

stock BugTimeOut(playerid)
{
	PlayerBugged[playerid]=0;
}

stock IsBugWeapon(playerid)
{
  new weaponid = GetPlayerWeapon(playerid);
  switch(weaponid){
		case 24,25,27,34: return true;}
  return false;
}
Reply
#2

Are you sure you didn't copy this off of the earlier released anti c-bug filterscript?
Reply
#3

He didn't. The other release is completly dfferent.
Reply
#4

#include <a_samp>
new PlayerUsingBug[MAX_PLAYERS];
new PlayerBugTimer[MAX_PLAYERS];
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(IsBugWeapon(playerid) && newkeys & KEY_FIRE) { PlayerUsingBug[playerid] = 1, PlayerBugTimer[playerid] = SetTimerEx("BugTimeOut",1000,0,"i",playerid); }
if(PlayerUsingBug[playerid]==1 && newkeys & KEY_CROUCH) { ApplyAnimation(playerid,"PED","getup",4.1,0,0,0,0, 0), PlayerUsingBug[playerid] = 0, KillTimer(PlayerBugTimer[playerid]); }
return 1;
}

forward BugTimeOut(playerid); public BugTimeOut(playerid) { PlayerUsingBug[playerid]=0; }

stock IsBugWeapon(playerid)
{
switch(GetPlayerWeapon(playerid)) { case 24,25,27,34: return true; }
return false;
}
Reply
#5

Whats is a +C bug?
Reply
#6

Quote:
Originally Posted by HydraX
Whats is a +C bug?
Reply
#7

Quote:
Originally Posted by HydraX
Whats is a +C bug?
+1

Anyways, something is wrong here:
Код:
if (PlayerUsingBug[playerid]==1 && newkeys != KEY_FIRE && newkeys & KEY_CROUCH)
What does newkeys & KEY_CROUCH means? Did you mean newkeys == KEY_CROUCH.
Reply
#8

C + bug is when the player shoots and press the key "crouch"
thus throwing faster, often used to desert
eagle.

Here's an example video: C-bug Kaweng vs Pro in SA-MP
Reply
#9

Quote:
Originally Posted by HydraX
Посмотреть сообщение
Whats is a +C bug?
it's when you're Crouched and shooting when walking ...
Reply
#10

Quote:
Originally Posted by ObScUR3_
Посмотреть сообщение
C + bug is when the player shoots and press the key "crouch"
thus throwing faster, often used to desert
eagle.

Here's an example video: C-bug Kaweng vs Pro in SA-MP
Thats best samp friend i've had lol, on the vid!

P cool this script but i love cbug
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)