Tuesday, November 23, 2010

SAMP Scripting Tutorial: Create a TextDraw

Here is the code

// Defines and Declarations
#define BLUE 0xFF0000FF
new Text:mytext;

// OnPlayerSpawn
TextDrawHideForPlayer(playerid,mytext); // Hide the textdraw
TextDrawDestroy(mytext); // Destroy the textdraw 

// MyTextDraw Function
MyTextDraw(playerid)
{
 mytext = TextDrawCreate(150.0,360.0,"Welcome to my SAMP Server"); // Create the textdraw
 TextDrawColor(mytext,BLUE); // Set the color of the text
 TextDrawSetOutline(mytext,1); // Set the outline (stroke) of the text
 TextDrawSetShadow(mytext,0); // Set the shadow of the text
 TextDrawFont(mytext,3); // Set the Font
 TextDrawLetterSize(mytext,0.7,1.2); // Set the letter size
 TextDrawShowForPlayer(playerid,mytext); // Show the textdraw to a certain player
}

// OnPlayerConnect
MyTextDraw(playerid);

4 comments:

  1. Once Scripts Work Thank You Thank You Much But Me No Suggestions Please post Samp Server How To Make Good For All People.

    ReplyDelete
  2. Indonesia

    Terimakasih Script Kamu Work Sekali Terimakasih Banyak Tetapi Saya Ada Saran Tolong Posting Cara Membuat Server Samp Supaya Semua Orang Senang.

    ReplyDelete