Acum am sa va zic cum se face un TextDraw care arata unde s-a teleportat cineva .

1.Pentru Inceput adaugam la inceputul GM:
Code: [Select]

new Text:TextdrawTele;
new TextTeleTimer = 0;
2.Mergem la OnGameModeInit() si adaugam:
Code: [Select]

TextdrawTele = TextDrawCreate(20.000000, 428.000000, " ");
TextDrawBackgroundColor(TextdrawTele, 255);
TextDrawFont(TextdrawTele, 1);
TextDrawLetterSize(TextdrawTele, 0.300000, 1.000000);
TextDrawColor(TextdrawTele, 16711935);
TextDrawSetOutline(TextdrawTele, 1);
TextDrawSetProportional(TextdrawTele, 1);
3.Mergem la OnPlayerConnect si adaugam:
Code: [Select]

TextDrawHideForPlayer(playerid,TextdrawTele);

4.Mergem la sfarsitul GM-ului si adaugam:
Code: [Select]

stock ShowTele(playerid,const tele[])
{
new string[256],pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
//Ex: ~g~LeoN ~w~Has Teleported To ~y~/aa
format(string, sizeof(string), "~g~%s ~w~s-a dus la ~y~%s",pName, tele);
TextDrawSetString(TextdrawTele,string);
TextDrawShowForAll(TextdrawTele);
if(TextTeleTimer == 0)
{
SetTimer("OnTextDrawTeleHide",3000,0);
TextTeleTimer = 1;
}
}
si
Code: [Select]

forward OnTextDrawTeleHide();
public OnTextDrawTeleHide()
{
TextDrawHideForAll(TextdrawTele);
TextTeleTimer = 0;
return 1;
}
Si pentru a aparea unde teai teleportat adaugati:
Code: [Select]

ShowTele(playerid,cmdtext);
la fiecare comanda de teleport .