score level system help :) - 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: score level system help :) (
/showthread.php?tid=409086)
score level system help :) -
deviljingoku - 20.01.2013
hey guyz i have score level system and its showing player money in score.but i wanna change score into player kills or other scores not money.how i can change it please help me
Код:
public OnPlayerUpdate(playerid)
{
new string[ 128 ];
new score;
score = GetPlayerScore(playerid);
format(string, sizeof string, "SCORE:~r~%d", score );
TextDrawSetString(Textdraw0, string);
if(GetPlayerScore(playerid) >= 30000) rank[ playerid ] = 35;
else if(GetPlayerScore(playerid) >= 25000) rank[ playerid ] = 34;
else if(GetPlayerScore(playerid) >= 20000) rank[ playerid ] = 33;
else if(GetPlayerScore(playerid) >= 15000) rank[ playerid ] = 32;
else if(GetPlayerScore(playerid) >= 10000) rank[ playerid ] = 31;
else if(GetPlayerScore(playerid) >= 9500) rank[ playerid ] = 30;