Textdraws
#1

I have created a textdraw now i'am finish now what i will do, how i will show it to other players ? where should i put this on my GM ?

http://pastebin.com/Wf3mHZBh
Reply
#2

pawn Код:
public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, Textdraw0);
    TextDrawShowForPlayer(playerid, Textdraw1);
    TextDrawShowForPlayer(playerid, Textdraw2);
    TextDrawShowForPlayer(playerid, Textdraw3);
    return 1;
}
Reply
#3

Full
pawn Код:
// Includes //
#include <a_samp>
// Textdraw //
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;

public OnGameModeInit()
{
    Textdraw0 = TextDrawCreate(459.999938, 425.576477, "www.elpilipinas.tk");
    TextDrawLetterSize(Textdraw0, 0.449999, 1.600000);
    TextDrawAlignment(Textdraw0, 1);
    TextDrawColor(Textdraw0, -16776961);
    TextDrawSetShadow(Textdraw0, 0);
    TextDrawSetOutline(Textdraw0, 1);
    TextDrawBackgroundColor(Textdraw0, 51);
    TextDrawFont(Textdraw0, 1);
 
    Textdraw1 = TextDrawCreate(4.800080, 426.346679, "El");
    TextDrawLetterSize(Textdraw1, 0.449999, 1.600000);
    TextDrawAlignment(Textdraw1, 1);
    TextDrawColor(Textdraw1, -16776961);
    TextDrawSetShadow(Textdraw1, 0);
    TextDrawSetOutline(Textdraw1, 1);
    TextDrawBackgroundColor(Textdraw1, 51);
    TextDrawFont(Textdraw1, 1);
    TextDrawSetProportional(Textdraw1, 1);
 
    Textdraw2 = TextDrawCreate(20.800010, 425.599853, "Pilipinas");
    TextDrawLetterSize(Textdraw2, 0.449999, 1.600000);
    TextDrawAlignment(Textdraw2, 1);
    TextDrawColor(Textdraw2, 16777215);
    TextDrawSetShadow(Textdraw2, 0);
    TextDrawSetOutline(Textdraw2, 1);
    TextDrawBackgroundColor(Textdraw2, 51);
    TextDrawFont(Textdraw2, 1);
    TextDrawSetProportional(Textdraw2, 1);
 
    Textdraw3 = TextDrawCreate(85.599990, 426.346679, "Roleplay");
    TextDrawLetterSize(Textdraw3, 0.449999, 1.600000);
    TextDrawAlignment(Textdraw3, 1);
    TextDrawColor(Textdraw3, -5963521);
    TextDrawSetShadow(Textdraw3, 0);
    TextDrawSetOutline(Textdraw3, 1);
    TextDrawBackgroundColor(Textdraw3, 51);
    TextDrawFont(Textdraw3, 1);
    TextDrawSetProportional(Textdraw3, 1);
    return 1;
}
public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, Textdraw0);
    TextDrawShowForPlayer(playerid, Textdraw1);
    TextDrawShowForPlayer(playerid, Textdraw2);
    TextDrawShowForPlayer(playerid, Textdraw3);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    TextDrawHideForPlayer(playerid, Textdraw0);
    TextDrawHideForPlayer(playerid, Textdraw1);
    TextDrawHideForPlayer(playerid, Textdraw2);
    TextDrawHideForPlayer(playerid, Textdraw3);
    return 1;
}
Reply
#4

Can i add this by filterscript ?
Reply
#5

Ofcourse you can
Reply
#6

Thanks +rep
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)