[FilterScript] [FS] Antibug "+C"
#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


Messages In This Thread
[FS] Antibug "+C" - by Fraer - 30.12.2009, 16:35
Re: [FS] Antibug "+C" - by Grim_ - 30.12.2009, 16:39
Re: [FS] Antibug "+C" - by Sergei - 30.12.2009, 16:43
Re: [FS] Antibug "+C" - by [JIeXa] - 30.12.2009, 18:05
Re: [FS] Antibug "+C" - by HydraX - 30.12.2009, 18:10
Re: [FS] Antibug "+C" - by WackoX - 30.12.2009, 18:24
Re: [FS] Antibug "+C" - by Skaty - 30.12.2009, 19:30
Re: [FS] Antibug "+C" - by ObScUR3_ - 30.12.2009, 19:42
Re: [FS] Antibug "+C" - by wolfcock - 09.07.2010, 17:05
Re: [FS] Antibug "+C" - by Lorenc_ - 10.07.2010, 07:33

Forum Jump:


Users browsing this thread: 2 Guest(s)