25.10.2013, 07:09
Код:
//============================================================================== 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