TextDraw of death,kills, score and rank! (rep++)
#1

Hey Guys:

> I want TextDraw on right top, under money portion.

It will like:
Kills: 2 \ Death: 5 \ Score: 5
Rank: Rookie (1)


I'll add all ranks by my own. Only give me hints. Please!!
Reply
#2

Код:
new string[MAX_PLAYERS];
format(string(sizeof(string),"Kills: %d",KillsFunction);
TextDrawSetString(TextDrawName,string);
format(string(sizeof(string),"Deaths: %d",DeathsFunction);
TextDrawSetString(TextDrawName,string);
format(string(sizeof(string),"Score: %d",ScoreFunction);
TextDrawSetString(TextDrawName,string);
Reply
#3

Where to put it?? On player text?? And whats will its location on screen??
Reply
#4

They go under OnGamemode/FilterScriptInit.

First of all, you would create the TextDraw (https://sampwiki.blast.hk/wiki/TextDrawCreate) then set a string into your TextDraw (TzAkS' example is just perfect), now you should show the TextDraw for a player (https://sampwiki.blast.hk/wiki/TextDrawShowForPlayer) or for all players (https://sampwiki.blast.hk/wiki/TextDrawShowForAll).

Check this tutorial out, it's very helpful
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)