MINI/STUPID Textdraw help nedded
#1

Hello, i would like to add a textraw with my server name under the radar, how i can?

http://imageshack.us/photo/my-images/20/samp000lud.png/

Replace "Los Santos International" WITH "COA:RP"

Thanks...
Reply
#2

I believe this is it:



//Subtitle
MainMenuTxtdraw[5] = TextDrawCreate(256.000000, 45.000000, "Name of the text");
TextDrawBackgroundColor(MainMenuTxtdraw[5], 255);
TextDrawFont(MainMenuTxtdraw[5], 2);
TextDrawLetterSize(MainMenuTxtdraw[5], 0.200000, 1.200001);
TextDrawColor(MainMenuTxtdraw[5], -1);
TextDrawSetOutline(MainMenuTxtdraw[5], 0);
TextDrawSetProportional(MainMenuTxtdraw[5], 1);
TextDrawSetShadow(MainMenuTxtdraw[5], 1);
textdrawscount++;
Reply
#3

Quote:
Originally Posted by Gooday
Посмотреть сообщение
Hello, i would like to add a textraw with my server name under the radar, how i can?

http://imageshack.us/photo/my-images/20/samp000lud.png/

Replace "Los Santos International" WITH "COA:RP"

Thanks...
You could just find (CTRL + F) that in your script and replace "Los Santos International" textdraw with "COA:RP" in OnGameModeInit. and to add new textdraw's you could use the following way:-

pawn Код:
// This variable is used to store the id of the textdraw
// so that we can use it throught the script
new Text:welcomeText;
 
public OnGameModeInit()
{
    // This line is used to create the textdraw.
    // Note: This creates a textdraw without any formatting.
    welcomeText = TextDrawCreate(240.0,580.0,"Welcome to my SA-MP server"); //it's TextDrawCreate(x, y, text); x and y are the positions.
    return 1;
}
 
public OnPlayerConnect(playerid)
{
    //This is used to show the player the textdraw when they connect.
    TextDrawShowForPlayer(playerid,welcomeText);
}
Hope this helps.

-FalconX
Reply
#4

Quote:
Originally Posted by HighPitchedVoice
Посмотреть сообщение
I believe this is it:



//Subtitle
MainMenuTxtdraw[5] = TextDrawCreate(256.000000, 45.000000, "Name of the text");
TextDrawBackgroundColor(MainMenuTxtdraw[5], 255);
TextDrawFont(MainMenuTxtdraw[5], 2);
TextDrawLetterSize(MainMenuTxtdraw[5], 0.200000, 1.200001);
TextDrawColor(MainMenuTxtdraw[5], -1);
TextDrawSetOutline(MainMenuTxtdraw[5], 0);
TextDrawSetProportional(MainMenuTxtdraw[5], 1);
TextDrawSetShadow(MainMenuTxtdraw[5], 1);
textdrawscount++;
My dear do not copy from anywhere, use your common sense, he will get a ton of errors in his script like MainMenuTxtdraw[5] is not made a variable so it will give an error..

This is not an offense, just telling you to not copy this from anywhere as it shows no sense in this because the textdrawscount++; is useless as it's NOT even needed here lol.

You would have used the way I said (which is from the SAMP forum wiki actually).

(Sorry for double post)

-FalconX
Reply
#5

No one of these wont work...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)