Anti 2-2
#1

How to anti 2-2 ??
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=373875
Reply
#3

Quote:
Originally Posted by ProRakNet
Посмотреть сообщение
I dont understand from this
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)