need textdraw help
#1

i have united gaming rp script when i login it gave me cars and like this the textdraw i took it from the pawno and copy it then how to put it on the script or how to make new filterscript and put it on the script cuz i am so confused
Reply
#2

Let me see ur FS so iknow where u gonna put it.
Reply
#3

MainMenu[0] = TextDrawCreate(250.000000, 343.000000, "~n~~n~~n~~n~~n~~n~");
TextDrawAlignment(MainMenu[0], 2);
TextDrawBackgroundColor(MainMenu[0], 255);
TextDrawFont(MainMenu[0], 1);
TextDrawLetterSize(MainMenu[0], 1.000000, 2.000000);
TextDrawColor(MainMenu[0], -16776961);
TextDrawSetOutline(MainMenu[0], 1);
TextDrawSetProportional(MainMenu[0], 1);
TextDrawUseBox(MainMenu[0], 1);
TextDrawBoxColor(MainMenu[0], 255);
TextDrawTextSize(MainMenu[0], 90.000000, 803.000000);

MainMenu[5] = TextDrawCreate(131.5 ,13, "test: Roleplay");
TextDrawFont(MainMenu[5] , 3);
TextDrawLetterSize(MainMenu[5] , 1, 7);
TextDrawColor(MainMenu[5] , 0x1564F5FF);
TextDrawSetOutline(MainMenu[5] , true);
TextDrawSetProportional(MainMenu[5] , true);
TextDrawSetShadow(MainMenu[5] , 1);

// Top Bar
MainMenu[1] = TextDrawCreate(250.000000, -12.000000, "~n~~n~~n~~n~~n~~n~");
TextDrawAlignment(MainMenu[1], 2);
TextDrawBackgroundColor(MainMenu[1], 255);
TextDrawFont(MainMenu[1], 1);
TextDrawLetterSize(MainMenu[1], 1.000000, 2.000000);
TextDrawColor(MainMenu[1], -16776961);
TextDrawSetOutline(MainMenu[1], 1);
TextDrawSetProportional(MainMenu[1], 1);
TextDrawUseBox(MainMenu[1], 1);
TextDrawBoxColor(MainMenu[1], 255);
TextDrawTextSize(MainMenu[1], 90.000000, 918.000000);

// Top Colored Bar
MainMenu[2] = TextDrawCreate(729.000000, 99.000000, "_");
TextDrawBackgroundColor(MainMenu[2], 255);
TextDrawFont(MainMenu[2], 1);
TextDrawLetterSize(MainMenu[2], 50.000000, 0.099999);
TextDrawColor(MainMenu[2], -16776961);
TextDrawSetOutline(MainMenu[2], 0);
TextDrawSetProportional(MainMenu[2], 1);
TextDrawSetShadow(MainMenu[2], 1);
TextDrawUseBox(MainMenu[2], 1);
TextDrawBoxColor(MainMenu[2], 0x1564F5FF);
TextDrawTextSize(MainMenu[2], -5.000000, 1031.000000);

/// Bottom Colored Bar
MainMenu[3] = TextDrawCreate(729.000000, 340.000000, "_");
TextDrawBackgroundColor(MainMenu[3], 255);
TextDrawFont(MainMenu[3], 1);
TextDrawLetterSize(MainMenu[3], 50.000000, 0.099999);
TextDrawColor(MainMenu[3], -16776961);
TextDrawSetOutline(MainMenu[3], 0);
TextDrawSetProportional(MainMenu[3], 1);
TextDrawSetShadow(MainMenu[3], 1);
TextDrawUseBox(MainMenu[3], 1);
TextDrawBoxColor(MainMenu[3], 0x1564F5FF);
TextDrawTextSize(MainMenu[3], -5.000000, 1031.000000);
Reply
#4

i want to put this what i do








Area4 = TextDrawCreate(250.000000, 102.000000, "United Gaming RP");
TextDrawBackgroundColor(Area4, 255);
TextDrawFont(Area4, 1);
TextDrawLetterSize(Area4, 0.500000, 3.200000);
TextDrawColor(Area4, -16776961);
TextDrawSetOutline(Area4, 0);
TextDrawSetProportional(Area4, 1);
TextDrawSetShadow(Area4, 1);
TextDrawSetSelectable(Area4, 0);

Area5 = TextDrawCreate(480.000000, 256.000000, "Another Life");
TextDrawBackgroundColor(Area5, 255);
TextDrawFont(Area5, 0);
TextDrawLetterSize(Area5, 0.500000, 4.000000);
TextDrawColor(Area5, -65281);
TextDrawSetOutline(Area5, 0);
TextDrawSetProportional(Area5, 1);
TextDrawSetShadow(Area5, 1);
TextDrawSetSelectable(Area5, 0);

Area6 = TextDrawCreate(162.000000, 60.000000, "New Area");
TextDrawBackgroundColor(Area6, 0);
TextDrawFont(Area6, 5);
TextDrawLetterSize(Area6, 0.500000, 1.000000);
TextDrawColor(Area6, -1);
TextDrawSetOutline(Area6, 0);
TextDrawSetProportional(Area6, 1);
TextDrawSetShadow(Area6, 1);
TextDrawUseBox(Area6, 1);
TextDrawBoxColor(Area6, -16776961);
TextDrawTextSize(Area6, 104.000000, 105.000000);
TextDrawSetPreviewModel( Area6, 411);
TextDrawSetPreviewRot( Area6, 0.000000, 0.000000, 0.000000, 1.000000);
TextDrawSetSelectable(Area6, 0);

Area7 = TextDrawCreate(380.000000, 58.000000, "New Area");
TextDrawBackgroundColor(Area7, 0);
TextDrawFont(Area7, 5);
TextDrawLetterSize(Area7, 0.500000, 1.000000);
TextDrawColor(Area7, -1);
TextDrawSetOutline(Area7, 0);
TextDrawSetProportional(Area7, 1);
TextDrawSetShadow(Area7, 1);
TextDrawUseBox(Area7, 1);
TextDrawBoxColor(Area7, -16776961);
TextDrawTextSize(Area7, 104.000000, 105.000000);
TextDrawSetPreviewModel( Area7, 48;
TextDrawSetPreviewRot( Area7, -50.000000, 0.000000, -55.000000, 1.000000);
TextDrawSetSelectable(Area7, 0);

Area8 = TextDrawCreate(550.000000, 215.000000, "New Area");
TextDrawBackgroundColor(Area8, 0);
TextDrawFont(Area8, 5);
TextDrawLetterSize(Area8, 0.500000, 1.000000);
TextDrawColor(Area8, -1);
TextDrawSetOutline(Area8, 0);
TextDrawSetProportional(Area8, 1);
TextDrawSetShadow(Area8, 1);
TextDrawUseBox(Area8, 1);
TextDrawBoxColor(Area8, -16776961);
TextDrawTextSize(Area8, 104.000000, 105.000000);
TextDrawSetPreviewModel( Area8, 524);
TextDrawSetPreviewRot( Area8, 0.000000, 0.000000, -55.000000, 1.000000);
TextDrawSetSelectable(Area8, 0);
}

print("Stage 7");
IRCInfo[0][iPlayers] = 0; IRCInfo[1][iPlayers] = 0; IRCInfo[2][iPlayers] = 0;
IRCInfo[3][iPlayers] = 0; IRCInfo[4][iPlayers] = 0; IRCInfo[5][iPlayers] = 0;
IRCInfo[6][iPlayers] = 0; IRCInfo[7][iPlayers] = 0; IRCInfo[8][iPlayers] = 0;
IRCInfo[9][iPlayers] = 0;
SetGameModeText("UG:RP v0.2");
gettime(ghour, gminute, gsecond);
ShowPlayerMarkers(1);
FixHour(ghour);
ghour = shifthour;
if(!realtime)
{
SetWorldTime(wtime);
Reply
#5

put these all textdraws under OnGamemodeInIt then Add this Under onPlayerConnect:

Код:
TextDrawShowForPlayer(playerid, MainMenu[0]);
TextDrawShowForPlayer(playerid, MainMenu[1]);
TextDrawShowForPlayer(playerid, MainMenu[2]);
TextDrawShowForPlayer(playerid, MainMenu[3]);
TextDrawShowForPlayer(playerid, MainMenu[5]);
and Add this under OnPlayerDisconnect:

Код:
TextDrawHideForPlayer(playerid, MainMenu[0]);
TextDrawHideForPlayer(playerid, MainMenu[1]);
TextDrawHideForPlayer(playerid, MainMenu[2]);
TextDrawHideForPlayer(playerid, MainMenu[3]);
TextDrawHideForPlayer(playerid, MainMenu[5]);
Reply
#6

Try to put it on OnGameModeInit
Reply
#7

Quote:
Originally Posted by SpikY_
Посмотреть сообщение
put these all textdraws under OnGamemodeInIt then Add this Under onPlayerConnect:

Код:
TextDrawShowForPlayer(playerid, MainMenu[0]);
TextDrawShowForPlayer(playerid, MainMenu[1]);
TextDrawShowForPlayer(playerid, MainMenu[2]);
TextDrawShowForPlayer(playerid, MainMenu[3]);
TextDrawShowForPlayer(playerid, MainMenu[5]);
and Add this under OnPlayerDisconnect:

Код:
TextDrawHideForPlayer(playerid, MainMenu[0]);
TextDrawHideForPlayer(playerid, MainMenu[1]);
TextDrawHideForPlayer(playerid, MainMenu[2]);
TextDrawHideForPlayer(playerid, MainMenu[3]);
TextDrawHideForPlayer(playerid, MainMenu[5]);
This ^^^ perfect
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)