SA-MP Forums Archive
help about drift point - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help about drift point (/showthread.php?tid=535048)



help about drift point - haridz - 01.09.2014

im using drift point counter i add setplayerscore but the score keep changing it doesnt + the other score.please help


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]);
////////////////////////////////////////////////////

DriftPointsNow[playerid] = 0;
}


Re: help about drift point - Blazed - 30.09.2014

I don't know if your gonna still check this but here you go
Код:
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;
}
Tell me if there are any errors or warnings cause im not at home and can't check that.