SA-MP Forums Archive
Killingspree - 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: Killingspree (/showthread.php?tid=473675)



Killingspree - RowdyrideR - 03.11.2013

Well, Showing the spree with a textdraw, It works fine with 1 and 2 kills, later on it freezes till it becomes 6 kills (3,4,5 the text keeps saying 2) and again till it becomes 9 kills.

On top:

Код:
new PTK[MAX_PLAYERS],gHighScore=0;
Under OnPlayerDeath:

Код:
++PTK[playerid];
if (PTK[playerid] > gHighScore)
    {
        gHighScore = PTK[playerid];
        format(SpreeS, sizeof(SpreeS), "%s is on KillingSpree with %d kills!", PlayerName(playerid),PTK[playerid]);
	    TextDrawSetString(Spree,SpreeS);
    }
Yeah I know it should be [killerid] but I did [playerid] for testing.