Please 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: Please Help (
/showthread.php?tid=335351)
Please Help -
Pankaj - 18.04.2012
Hello, I want a textdraw teleport message in my 0.3d server.
I have tried a lot but it was not perfect. I want textdraw like this.......:
Can you make this......?
Re: Please Help -
Jstylezzz - 18.04.2012
Quote:
Originally Posted by Pankaj
Hello, I want a textdraw teleport message in my 0.3d server.
I have tried a lot but it was not perfect. I want textdraw like this.......:
Can you make this......?
|
This filterscript, let's you create the textdraws in-game, so you will know how it look like.
It saves the textdraw code in a .txt file, where you can copy/paste it from
Good Luck!
Re: Please Help -
Pankaj - 18.04.2012
Quote:
Originally Posted by Jari_Johnson*
This filterscript, let's you create the textdraws in-game, so you will know how it look like.
It saves the textdraw code in a .txt file, where you can copy/paste it from
Good Luck!
|
I have created the textdraw but i am not able to give the player name and the command.
Re: Please Help -
Jstylezzz - 18.04.2012
Try to use format functions or something?
I'm not sure how, but give it a try.
Re: Please Help -
Pankaj - 18.04.2012
Sorry, i didn't understand.
Re: Please Help -
Jstylezzz - 18.04.2012
Quote:
Originally Posted by Pankaj
Sorry, i didn't understand.
|
well, create a text in the textdraw, and use a
Format to get the playername inside it
Re: Please Help -
Pankaj - 19.04.2012
What Placehloder should i use for the command used by the player..?
Re: Please Help -
Pankaj - 19.04.2012
Done...............
Re: Please Help -
MP2 - 19.04.2012
Instead of using format() and TextDrawTextString in 5000 different teleports, you should create a stock function for it.
pawn Код:
stock ShowTeleTD(playerid, tele[])
{
new szTDstring[64];
GetPlayerName(playerid, szTDstring, sizeof(szTDstring));
format(szTDstring, sizeof(szTDstring), "%s teleported to %s", pName, tele);
TextDrawSetString(textid, szTDstring);
return 1;
}
Then in your commands, simply put 'ShowTeleTD(playerid, "/AA");' or whatever.