Posts: 10
Threads: 6
Joined: Feb 2012
Reputation:
0
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.
Posts: 357
Threads: 6
Joined: Feb 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);
}