13.07.2009, 13:39
Hello, I need help I want that when a player is in a car and that car and seriously damaged its ejects
thank you in advance
thank you in advance
Originally Posted by lepompier
pleaze help me,
|
forward EjectIfDamaged();
SetTimer("EjectIfDamaged",100,1);
public EjectIfDamaged(){
new i;
for(i=0;i<=MAX_PLAYERS;i++){
if(IsPlayerInAnyVehicle(i)){
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(i),health);
if(health<=200){
RemovePlayerFromVehicle(i);
}
}
}
return 1;
}