If a player is in a vehicle and they die, the speedo still displays..
#1

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        TextDrawHideForPlayer(playerid,speed[playerid]);
        TextDrawHideForPlayer(playerid,fuel[playerid]);
        KillTimer(FuelSysTimer[playerid]);
        KillTimer(SpeedoSysTimer[playerid]);

    }
    Hospitalized[playerid] = 1;
    MySQL_SetInteger(PlayerSQLID[playerid], "HospitalTime", 30, "accounts");
    HospitalTime[playerid] = 30;
    dohospital(playerid);
   
    return 1;
}
That should hide it, right? But it doesn't.
Reply
#2

Try OnPlayerStateChange (PLAYER_STATE_WASTED)
Reply
#3

Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)