Textdraw 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)
+--- Thread: Textdraw HELP (
/showthread.php?tid=481068)
Textdraw HELP -
necrobg3 - 14.12.2013
Hello, I don't know how to create the OnGameModeInit Textdraw stuff, already tried to create a textdraw but it don't works, so can anyone make it for me i will be very glad.
Код:
new GroveScore,BallasScore;
public OnGameModeInit()
{
TextDrawStuffz...
}
public OnPlayerDeath(playerid,killerid,reason)
{
if(gTeam[playerid]==NORK)
{
if(gTeam[playerid]==NORK)GroveScore--; //otherwise punishment
else BallasScore++;
}else{
if(gTeam[playerid]==GARRY)BallasScore--; //otherwise punishment
else GroveScore++;
}
new tmpstr[50]; //Accommodate for string size
format(tmpstr,sizeof(tmpstr),"Nork: %d Garry:%d",GroveScore,BallasScore);
TextDrawSetString(YourTextDraw,tmpstr);
return 1;
}
Thanks anyways, peace.
Re: Textdraw HELP -
newbie scripter - 14.12.2013
i keep my TD in a forward and onplayerconnect since OnGameModeInit doesn't have a playerid argument . try to keep it in OnPlayerConnect
Re: Textdraw HELP -
necrobg3 - 14.12.2013
The problem is that i can't script it, I mean I don't know how to make this textdraw, I know only how to make simple one not with "%d". I want help with the creating of the Textdraw, and thanks - I will keep in mind that i need to put it under OnPlayerConnect.
Re: Textdraw HELP -
iOxide - 14.12.2013
Search on internet for samp textdraw editor, there are tons of textdraw editors available.
Re: Textdraw HELP -
necrobg3 - 14.12.2013
Im not asking how to create a basic textdraw if you look at my code you will understand what type of textdraw I need. In internet there are only simple and basic textdraws, not that type that I need.
Re: Textdraw HELP -
newbie scripter - 14.12.2013
TextDrawShowForAll(/*the TD variable*/);
Inside OnGMInit
Re: Textdraw HELP -
necrobg3 - 15.12.2013
Can you make the whole textdraw for me? I will be very thankful.
Re: Textdraw HELP -
necrobg3 - 15.12.2013
Please..
Re: Textdraw HELP -
iOxide - 15.12.2013
What kind of Textdraw you need and where on screen?
Re: Textdraw HELP -
necrobg3 - 15.12.2013
Here, where is the black thing -
http://prikachi.com/images/543/6855543i.png