[Help] Text Draw 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] Text Draw Help. (
/showthread.php?tid=199812)
[Help] Text Draw Help. -
[Comrade] - 16.12.2010
Hey everyone, how can i make it so in this text draw -
PHP код:
Textdraw0 = TextDrawCreate(546.000000, 40.000000, "Kills: 100");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.390000, 1.200000);
TextDrawColor(Textdraw0, -16776961);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
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?
Re: [Help] Text Draw Help. -
Baboon - 16.12.2010
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.
Re: [Help] Text Draw Help. -
Seven. - 16.12.2010
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?
Re: [Help] Text Draw Help. -
[Comrade] - 16.12.2010
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
Re: [Help] Text Draw Help. -
[Comrade] - 16.12.2010
Never mind, i figured it out! Thanks alot everyone!