22.12.2014, 20:00
Hi, how to fix?
the driver is injured,the passenger's nothing wrong.
Code:
the driver is injured,the passenger's nothing wrong.
Code:
Код:
public OnPlayerVehicleDamage(playerid, vehicleid, Float:Damage) { new Float: HP; GetPlayerHealth(playerid, HP); new Float: PosXa, Float: PosYa, Float: PosZa; new newstate = GetPlayerState(playerid); if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER){ if( Damage > 155.0 && 190.0 ){ Cselekves(playerid,"easily damaged."); SetPlayerDrunkLevel(playerid, 5000); SetTimerEx("Szedules", 30000, 0, "d", playerid); SetPlayerHealth(playerid, HP - 20);} } } return 1; }