18.12.2018, 03:45
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
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);
}