27.12.2014, 00:36
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)
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)