Anti DDB only
#1

Код:
//==============================================================================
public OnPlayerStateChange(playerid, newstate, oldstate) {
	switch(newstate) {
		case PLAYER_STATE_ONFOOT: {
			switch(oldstate) {
				case PLAYER_STATE_DRIVER: OnPlayerExitVehicle(playerid,255);
				case PLAYER_STATE_PASSENGER: OnPlayerExitVehicle(playerid,255);
			}
		}
	}
	if(newstate == PLAYER_STATE_DRIVER)
	{
	    SetPlayerArmedWeapon(playerid, 0);
	}
	
	return 1;
}

#endif
this is for passenger + driver, how to make it driver only?
Reply


Messages In This Thread
Anti DDB only - by Superhot - 25.10.2013, 07:09
Re: Anti DDB only - by iJumbo - 25.10.2013, 07:15
Re: Anti DDB only - by iZN - 25.10.2013, 07:17
Re: Anti DDB only - by Superhot - 25.10.2013, 07:22

Forum Jump:


Users browsing this thread: 1 Guest(s)