[FilterScript] Advanced Anti-Driveby!
#2

OMG

This will disarm only driver.

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
         SetPlayerArmedWeapon(playerid, 0);
    }
    return 1;
}
This will disarm driver and passenger.

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if (newstate==PLAYER_STATE_DRIVER || newstate==PLAYER_STATE_PASSENGER)
    {
         SetPlayerArmedWeapon(playerid, 0);
    }
    return 1;
}
You don't need so much functions in 0.3c. No need to freeze and use timers.
Reply


Messages In This Thread
Advanced Anti-Driveby! - by Master_Gangster - 19.03.2011, 18:36
Re: Advanced Anti-Driveby! - by Cypress - 19.03.2011, 21:33
Re: Advanced Anti-Driveby! - by Venice - 19.03.2011, 22:50
Re: Advanced Anti-Driveby! - by Phanto90 - 19.03.2011, 22:54
Re: Advanced Anti-Driveby! - by Master_Gangster - 19.03.2011, 23:19

Forum Jump:


Users browsing this thread: 1 Guest(s)