[HELP] Text Draw Need - 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 Need (
/showthread.php?tid=98138)
[HELP] Text Draw Need -
TraNe15 - 19.09.2009
Hi everyone.. I need some help about text draws.. I tried it but i failed
![Sad](images/smilies/sad.gif)
I need text draw like this(left down corner);
Ammo isnt very imporant for me.. But if you can do please Help.. I'm looking forward..
-TraNe15-
Re: [HELP] Text Draw Need -
0ne - 19.09.2009
USE SEARCH!
Re: [HELP] Text Draw Need -
TraNe15 - 19.09.2009
No! I really searched and i tried to make one.! But I FAILED(4 times)! So i need some help from other scripters!
Re: [HELP] Text Draw Need -
0ne - 19.09.2009
If you would've search good enough you SHOULD FIND ZAMAROHT'S TEXT DRAW EDITOR AND ALL THE INSTRUCTIONS.
Re: [HELP] Text Draw Need -
TraNe15 - 19.09.2009
Quote:
Originally Posted by 0ne
If you would've search good enough you SHOULD FIND ZAMAROHT'S TEXT DRAW EDITOR AND ALL THE INSTRUCTIONS.
|
OK stop criticising me! I'm using "ZAMAROHT'S TEXT DRAW EDITOR" i did textdraw but i cannot script it.. (chaning hp or armour)!
Re: [HELP] Text Draw Need -
0ne - 19.09.2009
ontop:
Code:
new Health;
new Armor;
Health = GetPlayerHealth(playerid);
Armor = GetPlayerArmor(playerid);
Code:
new Text:HealthArmor[MAX_PLAYERS][1];
then create a textdraw and set a timer ongamemodeinit:
Code:
public OnGameModeInit()
{
SetTimer("CheckHPA",500,1);
return 1;
}
DONT FORGET TO FORWARD
Code:
public CheckHPA(playerid)
{
new string[128];
format(string, sizeof(string), "Health %d", Health);
TextDrawSetString(HealthArmor[playerid][0],string);
format(string, sizeof(string), "Armor %d", Armor);
TextDrawSetString(HealthArmor[playerid][1],string);
return 1;
}
Should be correct.
Re: [HELP] Text Draw Need -
TraNe15 - 19.09.2009
Ok ok i got it.. Problem Solved..
Lock Topic Please..!
TraNe15