Anti 2-2
#4

The topic he gave you is about sawn-off glitch.

In the same topic you can find this code:
Код:
public OnPlayerUpdate(playerid) 
{
	static wepState ;
	wepState = GetPlayerWeaponState (playerid);
	if( WEAPONSTATE_LAST_BULLET  == wepState || wepState   == WEAPONSTATE_MORE_BULLETS || WEAPONSTATE_RELOADING  ==   wepState) {
		return true;
	}
	static wepId ;
	wepId = GetPlayerWeapon(playerid);
	if ( wepId  != SAWN_ OFFID ) {
		SetPVarInt( playerid, "lastWeapon", wepId );
		SetPVarInt( playerid, "lastTimewep", gettime() );
		return true;
	}
	else {
		if ( gettime() - GetPVarInt(playerid,"sawnoffPega") < 10 && gettime () - GetPVarInt( playerid, "lastTimewep") < 2 && GetPVarInt( playerid, "lastWeapon" ) !=  SAWN_ OFFID ) {
			SetPVarInt( playerid, "lastWeapon", SAWN_ OFFID);
			SetPVarInt( playerid, "lastTimewep", 0);
			return true;
		}
		SetPVarInt( playerid, "sawnoffPega", gettime());
	}
	return true ;
}
Reply


Messages In This Thread
Anti 2-2 - by Ilai14 - 15.04.2016, 22:02
Re: Anti 2-2 - by ProRakNet - 15.04.2016, 22:08
Re: Anti 2-2 - by Ilai14 - 15.04.2016, 22:11
Re: Anti 2-2 - by Darkwood17 - 15.04.2016, 22:24

Forum Jump:


Users browsing this thread: 1 Guest(s)