[HELP] How to get like this in my server?? - 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] How to get like this in my server?? (
/showthread.php?tid=267601)
[HELP] How to get like this in my server?? -
Xtreme-Nicole - 09.07.2011
Hey all i have a question how can i make some like this in my server?
sorry for ad but i dont know how other:

some can help me??
Re: [HELP] How to get like this in my server?? -
[HiC]TheKiller - 09.07.2011
It's called a textdraw
https://sampwiki.blast.hk/wiki/TextDrawCreate
Info on
TextDraws
Re: [HELP] How to get like this in my server?? -
Kush - 09.07.2011
That my dear friend is a Textdraw. Uses this function so set it's position with your preferred text:
https://sampwiki.blast.hk/wiki/TextDrawCreate
Re: [HELP] How to get like this in my server?? -
Xtreme-Nicole - 09.07.2011
Okay Thanks for you help
Re: [HELP] How to get like this in my server?? -
Xtreme-Nicole - 09.07.2011
I have do what i need to do but i get :
Quote:
error 010: invalid function or declaration
|
Re: [HELP] How to get like this in my server?? -
Kush - 09.07.2011
Quote:
Originally Posted by Xtreme-Nicole
I have do what i need to do but i get :
|
You obviously aren't using it correctly.
First, paste this at the top of your script, below the includes.
Next, we're going to create a simple function.
pawn Код:
YourTextDraw(playerid)
{
yourtext = TextDrawCreate(0.0,0.0,"Place what you want in here."); //Remember to change the values of the floats.
TextDrawShowForPlayer(playerid,yourtext);
}
Place this function, in your desired callback (ex. OnPlayerConnect)
pawn Код:
OnPlayerConnect(playerid)
{
YourTextDraw(playerid);
}
If you would like the textdraw to be hidden or destroyed when the player spawns, add this:
pawn Код:
OnPlayerSpawn(playerid)
{
TextDrawHideForPlayer(playerid,yourtext);
TextDrawDestroy(yourtext);
}
Re: [HELP] How to get like this in my server?? -
Xtreme-Nicole - 09.07.2011
can some give me a complete script cuz what i do it dont work
Re: [HELP] How to get like this in my server?? -
Kush - 09.07.2011
http://pastebin.com/NJ74r9YW - Pastebin.
http://www.sendspace.com/file/cemg4u - Download.
Re: [HELP] How to get like this in my server?? -
Xtreme-Nicole - 09.07.2011
Thanks
Re: [HELP] How to get like this in my server?? -
Kush - 09.07.2011
No Problem