[HELP]Script Teleport and Textdraw - 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: [HELP]Script Teleport and Textdraw (
/showthread.php?tid=661891)
[HELP]Script Teleport and Textdraw -
litu1 - 18.12.2018
Hello that so to all .. I come with a small order, first of all I explain, I saw this in a sv that enter so enter, at the bottom of the money came a textdraw that said the following
"Name went to /agria" this textdraw had a transparent background with that .. I would like to know if someone can help me with this script and thanks.
Re: [HELP]Script Teleport and Textdraw -
UFF - 18.12.2018
Create Textdraw using textdraw editor -
https://sampforum.blast.hk/showthread.php?tid=442095
Create the textdraw as global. Now after creating the textdraw.
1) Place the textdraw Under OnGamemodeInit().
2) Under OnPlayerConnect put TextdrawShowforPlayer(playerid, YourTextdrawName);
Now make a function. under each teleport command.
Example
pawn Код:
CMD:lossantos(playerid)
{
//-- Teleport
TeleportTXTMessage(playerid, "/lossantos");
return 1;
}
CMD:area51(playerid)
{
//-- Teleport
TeleportTXTMessage(playerid, "/area51");
return 1;
}
TeleportTXTMessage(playerid, telename[]);
{
new str[200], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(str, sizeof(str), "%s(%i) went to %s", name, playerid, telename);
TextDrawSetString(YourTextdrawName, str);
}