19.04.2012, 06:48
Instead of using format() and TextDrawTextString in 5000 different teleports, you should create a stock function for it.
Then in your commands, simply put 'ShowTeleTD(playerid, "/AA");' or whatever.
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;
}