Please Help
#1

Hello, I want a textdraw teleport message in my 0.3d server.
I have tried a lot but it was not perfect. I want textdraw like this.......:

Can you make this......?
Reply
#2

Quote:
Originally Posted by Pankaj
Посмотреть сообщение
Hello, I want a textdraw teleport message in my 0.3d server.
I have tried a lot but it was not perfect. I want textdraw like this.......:

Can you make this......?
This filterscript, let's you create the textdraws in-game, so you will know how it look like.
It saves the textdraw code in a .txt file, where you can copy/paste it from

Good Luck!
Reply
#3

Quote:
Originally Posted by Jari_Johnson*
Посмотреть сообщение
This filterscript, let's you create the textdraws in-game, so you will know how it look like.
It saves the textdraw code in a .txt file, where you can copy/paste it from

Good Luck!
I have created the textdraw but i am not able to give the player name and the command.
Reply
#4

Try to use format functions or something?
I'm not sure how, but give it a try.
Reply
#5

Sorry, i didn't understand.
Reply
#6

Quote:
Originally Posted by Pankaj
Посмотреть сообщение
Sorry, i didn't understand.
well, create a text in the textdraw, and use a Format to get the playername inside it
Reply
#7

What Placehloder should i use for the command used by the player..?
Reply
#8

Done...............
Reply
#9

Instead of using format() and TextDrawTextString in 5000 different teleports, you should create a stock function for it.

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;
}
Then in your commands, simply put 'ShowTeleTD(playerid, "/AA");' or whatever.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)