SA-MP Forums Archive
Score + FPS td - 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 + FPS td (/showthread.php?tid=496446)



Score + FPS td - Mriss - 22.02.2014

Could someone please make me a simple Score and FPS textdraw, I have no clue....

I dont want it to collide with this TD - http://prntscr.com/2uqqnr I didnt know where to ask for request so I tried here :P


Re: Score + FPS td - Kyance - 22.02.2014

Fps:
http://pastebin.com/Ad15aN5B
Then following that code, create a score one (Just replace it with "SCORE", remove the Fps/DrunkLevel stuff, and use GetPlayerScore(i), lol)


Re: Score + FPS td - Mriss - 22.02.2014

But wouldnt they like be on top of each other?


Re: Score + FPS td - Kyance - 22.02.2014

Quote:
Originally Posted by Mriss
Посмотреть сообщение
But wouldnt they like be on top of each other?
Yeah but, you can change the location

My stuff:

pawn Код:
/*OnGameModeInit*/
for(new i = 0; i < MAX_PLAYERS; i++)
    {
        FPS[i] = TextDrawCreate(250.000000, 428.000000, "FPS: 30");
        TextDrawBackgroundColor(FPS[i], 255);
        TextDrawFont(FPS[i], 1);
        TextDrawLetterSize(FPS[i], 0.480000, 2.000000);
        TextDrawColor(FPS[i], -1);
        TextDrawSetOutline(FPS[i], 1);
        TextDrawSetProportional(FPS[i], 1);
        TextDrawSetShadow(FPS[i], 1);
    }
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        PING[i] = TextDrawCreate(350.000000, 428.000000, "PING: 80");
        TextDrawBackgroundColor(PING[i], 255);
        TextDrawFont(PING[i], 1);
        TextDrawLetterSize(PING[i], 0.480000, 2.000000);
        TextDrawColor(PING[i], -1);
        TextDrawSetOutline(PING[i], 1);
        TextDrawSetProportional(PING[i], 1);
        TextDrawSetShadow(PING[i], 1);
    }
Replace the "PING" with "SCORE" etc.. ;d