11.07.2012, 16:33
Код:
new Float:health; public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { new playerstate = GetPlayerState(playerid); if (playerstate == PLAYER_STATE_ONFOOT) GetPlayerHealth(playerid, health); SetPlayerHealth(playerid, 100); return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { SetPlayerHealth(playerid, health); return 1; }