[HELP ME] Where do i put the textdraw codes to make it permanently?
#1

Where do i put this global textdraw to make it permanently?

Код:
//Global Textdraws:

new Text:Forum;
new Text:PHRP;
new Text:JoinNow;
new Text:CreatorInfo;


Forum = TextDrawCreate(509.500000, 1.120005, "www.ph-roleplay.yzi.me");
TextDrawLetterSize(Textdraw0, 0.404998, 2.193598);
TextDrawTextSize(Textdraw0, -114.000000, 70.560005);
TextDrawAlignment(Textdraw0, 1);
TextDrawColor(Textdraw0, -1);
TextDrawSetShadow(Textdraw0, 0);
TextDrawSetOutline(Textdraw0, 1);
TextDrawBackgroundColor(Textdraw0, 51);
TextDrawFont(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);

PHRP = TextDrawCreate(102.500000, 427.279998, "Philippines Roleplay");
TextDrawLetterSize(Textdraw1, 0.414000, 2.148799);
TextDrawTextSize(Textdraw1, -47.500000, 1198.399902);
TextDrawAlignment(Textdraw1, 2);
TextDrawColor(Textdraw1, -16776961);
TextDrawUseBox(Textdraw1, true);
TextDrawBoxColor(Textdraw1, 255);
TextDrawSetShadow(Textdraw1, 6);
TextDrawSetOutline(Textdraw1, 0);
TextDrawBackgroundColor(Textdraw1, 51);
TextDrawFont(Textdraw1, 2);
TextDrawSetProportional(Textdraw1, 1);

JoinNow = TextDrawCreate(226.500000, 427.280059, "Join Now! IP: 176.31.103.65:12240");
TextDrawLetterSize(Textdraw2, 0.368000, 2.042399);
TextDrawAlignment(Textdraw2, 1);
TextDrawColor(Textdraw2, -1);
TextDrawSetShadow(Textdraw2, 0);
TextDrawSetOutline(Textdraw2, 1);
TextDrawBackgroundColor(Textdraw2, 51);
TextDrawFont(Textdraw2, 1);
TextDrawSetProportional(Textdraw2, 1);

CreatorInfo = TextDrawCreate(487.500000, 430.079986, "Created by: Ivann");
TextDrawLetterSize(Textdraw3, 0.449999, 1.600000);
TextDrawAlignment(Textdraw3, 1);
TextDrawColor(Textdraw3, -65281);
TextDrawSetShadow(Textdraw3, 0);
TextDrawSetOutline(Textdraw3, 1);
TextDrawBackgroundColor(Textdraw3, 51);
TextDrawFont(Textdraw3, 3);
TextDrawSetProportional(Textdraw3, 1);
Reply
#2

You put it on the top of your script. Don't put it in a callback, just put it on the top. The rest put it under OnGameModeInit().
Reply
#3

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
You put it on the top of your script. Don't put it in a callback, just put it on the top. The rest put it under OnGameModeInit().
Like the

new textdraw1;

is on the top

and the rest is below the OnGameModeInit?
Reply
#4

Not working dude

I put it under OnGameModeInit
Reply
#5

pawn Код:
// Top
new Text:Forum;
new Text:PHRP;
new Text:JoinNow;
new Text:CreatorInfo;

public OnGameModeInIt()
{
    Forum = TextDrawCreate(509.500000, 1.120005, "www.ph-roleplay.yzi.me");
    TextDrawLetterSize(Forum, 0.404998, 2.193598);
    TextDrawTextSize(Forum, -114.000000, 70.560005);
    TextDrawAlignment(Forum, 1);
    TextDrawColor(Forum, -1);
    TextDrawSetShadow(Forum, 0);
    TextDrawSetOutline(Forum, 1);
    TextDrawBackgroundColor(Forum, 51);
    TextDrawFont(Forum, 0);
    TextDrawSetProportional(Forum, 1);

    PHRP = TextDrawCreate(102.500000, 427.279998, "Philippines Roleplay");
    TextDrawLetterSize(PHRP, 0.414000, 2.148799);
    TextDrawTextSize(PHRP, -47.500000, 1198.399902);
    TextDrawAlignment(PHRP, 2);
    TextDrawColor(PHRP, -16776961);
    TextDrawUseBox(PHRP, true);
    TextDrawBoxColor(PHRP, 255);
    TextDrawSetShadow(PHRP, 6);
    TextDrawSetOutline(PHRP, 0);
    TextDrawBackgroundColor(PHRP, 51);
    TextDrawFont(PHRP, 2);
    TextDrawSetProportional(PHRP, 1);

    JoinNow = TextDrawCreate(226.500000, 427.280059, "Join Now! IP: 176.31.103.65:12240");
    TextDrawLetterSize(JoinNow, 0.368000, 2.042399);
    TextDrawAlignment(JoinNow, 1);
    TextDrawColor(JoinNow, -1);
    TextDrawSetShadow(JoinNow, 0);
    TextDrawSetOutline(JoinNow, 1);
    TextDrawBackgroundColor(JoinNow, 51);
    TextDrawFont(JoinNow, 1);
    TextDrawSetProportional(JoinNow, 1);

    CreatorInfo = TextDrawCreate(487.500000, 430.079986, "Created by: Ivann");
    TextDrawLetterSize(CreatorInfo, 0.449999, 1.600000);
    TextDrawAlignment(CreatorInfo, 1);
    TextDrawColor(CreatorInfo, -65281);
    TextDrawSetShadow(CreatorInfo, 0);
    TextDrawSetOutline(CreatorInfo, 1);
    TextDrawBackgroundColor(CreatorInfo, 51);
    TextDrawFont(CreatorInfo, 3);
    TextDrawSetProportional(CreatorInfo, 1);
    return 1;
}
Reply
#6

Quote:
Originally Posted by Ralfie
Посмотреть сообщение
I shown all textdraw for players,, still nothings happens

Here is my code

Код:
	Forum = TextDrawCreate(509.500000, 1.120005, "www.ph-roleplay.yzi.me");
	TextDrawLetterSize(Forum, 0.404998, 2.193598);
	TextDrawTextSize(Forum, -114.000000, 70.560005);
	TextDrawAlignment(Forum, 1);
	TextDrawColor(Forum, -1);
	TextDrawSetShadow(Forum, 0);
	TextDrawSetOutline(Forum, 1);
	TextDrawBackgroundColor(Forum, 51);
	TextDrawFont(Forum, 0);
	TextDrawSetProportional(Forum, 1);

	PHRP = TextDrawCreate(102.500000, 427.279998, "Philippines Roleplay");
	TextDrawLetterSize(PHRP, 0.414000, 2.148799);
	TextDrawTextSize(PHRP, -47.500000, 1198.399902);
	TextDrawAlignment(PHRP, 2);
	TextDrawColor(PHRP, -16776961);
	TextDrawUseBox(PHRP, true);
	TextDrawBoxColor(PHRP, 255);
	TextDrawSetShadow(PHRP, 6);
	TextDrawSetOutline(PHRP, 0);
	TextDrawBackgroundColor(PHRP, 51);
	TextDrawFont(PHRP, 2);
	TextDrawSetProportional(PHRP, 1);

	JoinNow = TextDrawCreate(226.500000, 427.280059, "Join Now! IP: 176.31.103.65:12240");
	TextDrawLetterSize(JoinNow, 0.368000, 2.042399);
	TextDrawAlignment(JoinNow, 1);
	TextDrawColor(JoinNow, -1);
	TextDrawSetShadow(JoinNow, 0);
	TextDrawSetOutline(JoinNow, 1);
	TextDrawBackgroundColor(JoinNow, 51);
	TextDrawFont(JoinNow, 1);
	TextDrawSetProportional(JoinNow, 1);

	CreatorInfo = TextDrawCreate(487.500000, 430.079986, "Created by: Ivann");
	TextDrawLetterSize(CreatorInfo, 0.449999, 1.600000);
	TextDrawAlignment(CreatorInfo, 1);
	TextDrawColor(CreatorInfo, -65281);
	TextDrawSetShadow(CreatorInfo, 0);
	TextDrawSetOutline(CreatorInfo, 1);
	TextDrawBackgroundColor(CreatorInfo, 51);
	TextDrawFont(CreatorInfo, 3);
	TextDrawSetProportional(CreatorInfo, 1);
Reply
#7

Try to put both codes and TextDrawShowForPlayer on OnPlayerSpawn.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)