OnPlayerVehicleDamage help please!
#1

only the driver but the passenger seat is not compromised!
Help please , Why do not you want to be good? I tried many ways but failed..
if you can answer!

public OnPlayerVehicleDamage(playerid, vehicleid, Floatamage)
{
new Float: HP;
GetPlayerHealth(playerid, HP);
if(IsPlayerInVehicle(playerid, vehicleid) && GetPlayerState(playerid) == 2) //<<passenger not convulse(is not compromised)
{
if( Damage > 165.0 && 195.0 )
{
Cselekves(playerid,"convulse.");
SetPlayerDrunkLevel(playerid, 5000);
SetPlayerHealth(playerid, HP - 20);
}
}
return 1;
}

(Sorry bad english)
Reply


Messages In This Thread
OnPlayerVehicleDamage help please! - by Slicebook - 27.12.2014, 00:36
Re : OnPlayerVehicleDamage help please! - by MCZOFT - 27.12.2014, 00:41
Re: OnPlayerVehicleDamage help please! - by SickAttack - 27.12.2014, 01:34
Re: OnPlayerVehicleDamage help please! - by Slicebook - 28.12.2014, 14:41
Re: OnPlayerVehicleDamage help please! - by Facerafter - 28.12.2014, 14:44

Forum Jump:


Users browsing this thread: 3 Guest(s)