[Help] Text Draw Help.
#1

Hey everyone, how can i make it so in this text draw -

PHP код:
    Textdraw0 TextDrawCreate(546.00000040.000000"Kills: 100");
    
TextDrawBackgroundColor(Textdraw0255);
    
TextDrawFont(Textdraw01);
    
TextDrawLetterSize(Textdraw00.3900001.200000);
    
TextDrawColor(Textdraw0, -16776961);
    
TextDrawSetOutline(Textdraw01);
    
TextDrawSetProportional(Textdraw01); 
Instead of score 100, it would display players actual score? and update it as well.

It goes from pKills but where should i put it?
Reply
#2

Do you mean: that when you join, the kills of the player will count <--- then I can help you.
If you mean: when the person registeres the kills will count (each login) <--- then I can't help you.
Reply
#3

pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
new string[128];
format(string, sizeof(string), "Kills: %d", pKills[killerid]); // Put here your thingy that stores the kills.
TextDrawSetString(Textdraw0,string);
return 1;
}
Something like this?
Reply
#4

Most server have that kind of thing, like when u connect, register and play kills count, when you exit and go back on, they are still there.

I want textdraw always be there too
Reply
#5

Never mind, i figured it out! Thanks alot everyone!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)