ANTI BULLET CRASHER Not working
#7

Quote:
Originally Posted by Mugala
Посмотреть сообщение
with the second code, you'll prevent them to make a teleport from vehicle to vehicle.
PHP код:
public OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    
SetPVarInt(playerid,"VehicleID",vehicleid);
    return 
1;
}
public 
OnPlayerStateChange(playeridnewstateoldstate)
{
    if(
newstate == oldstate) return KICK_MESSAGE(playerid,"Cheat");
    if(
newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
    {
        if(
GetPVarInt(playerid,"VehicleID") != GetPlayerVehicleID(playerid))
        {
            
KICK_MESSAGE(playerid,"Cheat");
            return 
1;
        }
    }
    if(
newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
    {
        if(
GetPVarInt(playerid,"BulletCrash") > gettime() )return KICK_MESSAGE(playerid,"Cleo Mod");
        
SetPVarInt(playerid,"BulletCrash",gettime() + 1);
    }
    return 
1;

I'm using same code like this Under OnPlayerStateChange but that crasher maybe using NOP that can disable OnPlayerStateChange

So as i said above maybe code need to move under OnPlayerUpdate

anyway Ty for making codes but On FOOT one is already working perfect , Only issue is with the vehicle one.
Reply


Messages In This Thread
ANTI BULLET CRASHER Not working - by MBilal - 18.02.2018, 04:49
Re: ANTI BULLET CRASHER Not working - by RogueDrifter - 18.02.2018, 04:54
Re: ANTI BULLET CRASHER Not working - by MBilal - 18.02.2018, 05:00
Re: ANTI BULLET CRASHER Not working - by RogueDrifter - 18.02.2018, 05:05
Re: ANTI BULLET CRASHER Not working - by MBilal - 18.02.2018, 09:52
Re: ANTI BULLET CRASHER Not working - by Mugala - 18.02.2018, 10:24
Re: ANTI BULLET CRASHER Not working - by MBilal - 18.02.2018, 10:32
Re: ANTI BULLET CRASHER Not working - by MBilal - 19.02.2018, 11:59

Forum Jump:


Users browsing this thread: 1 Guest(s)