OnPlayerVehicleDamage help please!
#3

pawn Код:
public OnPlayerVehicleDamage(playerid, vehicleid, Floatamage)
{
    new Float: HP;
    GetPlayerHealth(playerid, HP);
    if(IsPlayerInVehicle(playerid, vehicleid))
    {
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
        {
            if(Damage > 165.0 && 195.0)
            {
                Cselekves(playerid, "convulse.");
                SetPlayerDrunkLevel(playerid, 5000);
                SetPlayerHealth(playerid, HP - 20);
            }
        }
    }
    return 1;
}
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: 1 Guest(s)