29.11.2014, 10:33
Maybe something like that?
Код:
public OnPlayerStateChange(playerid,newstate,oldstate) { if(newstate == PLAYER_STATE_DRIVER) { new Float:Health; GetVehicleHealth(GetPlayerVehicleID(playerid),Health); if(Health < 300.0) { new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid,X,Y,Z); SetPlayerPos(playerid,X,Y,Z); } return 1; } }