30.09.2014, 03:37
I don't know if your gonna still check this but here you go
Tell me if there are any errors or warnings cause im not at home and can't check that.
Код:
public DriftExit(playerid){ // By Luby PlayerDriftCancellation[playerid] = 0; int Float:h; GetVehicleHealth(GetPlayerVehicleID(playerid),h); if(DriftPointsNow[playerid]>70 && DriftPointsNow[playerid]<10000 && h==HealthInit[playerid]) GivePlayerMoney(playerid,DriftPointsNow[playerid]*DriftBonus[playerid]); SetPlayerScore(playerid,DriftPointsNow[playerid]*DriftBonus[playerid]); TextDrawHideForPlayer(playerid,TDLabels[0]); TextDrawHideForPlayer(playerid,TDLabels[1]); TextDrawHideForPlayer(playerid,TDLabels[2]); TextDrawHideForPlayer(playerid,TDValueDrift[playerid]); TextDrawHideForPlayer(playerid,TDValueBonus[playerid]); TextDrawHideForPlayer(playerid,TDValueCash[playerid]); DriftBonus[playerid]=1; AutoFixBool[playerid]=true; SetVehicleHealth(GetPlayerVehicleID(playerid),Heal thInit[playerid]); SetPlayerScore(playerid, GetPlayerScore(playerid,DriftPointsNow[playerid]+DriftBonus[playerid]*2); //////////////////////////////////////////////////// DriftPointsNow[playerid] = 0; }