[FS] Antibug "+C" -
Fraer - 30.12.2009
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;
}
Re: [FS] Antibug "+C" -
Grim_ - 30.12.2009
Are you sure you didn't copy this off of the earlier released anti c-bug filterscript?
Re: [FS] Antibug "+C" -
Sergei - 30.12.2009
He didn't. The other release is completly dfferent.
Re: [FS] Antibug "+C" -
[JIeXa] - 30.12.2009
#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;
}
Re: [FS] Antibug "+C" -
HydraX - 30.12.2009
Whats is a +C bug?
Re: [FS] Antibug "+C" - WackoX - 30.12.2009
Quote:
Originally Posted by HydraX
Whats is a +C bug?
|
Re: [FS] Antibug "+C" -
Skaty - 30.12.2009
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.
Re: [FS] Antibug "+C" -
ObScUR3_ - 30.12.2009
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
Re: [FS] Antibug "+C" -
wolfcock - 09.07.2010
Quote:
Originally Posted by HydraX
Whats is a +C bug?
|
it's when you're Crouched and shooting when walking ...
Re: [FS] Antibug "+C" -
Lorenc_ - 10.07.2010
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