Rules textdraw.
#3

Top of on ur script
pawn Код:
//Rules Textdraw
new Text:Rules0;
new Text:Rules1;
new Text:Rules2;
new Text:Rules3;
new Text:Rules4;
new Text:Rules5;
ongamemodein

pawn Код:
Rules0 = TextDrawCreate(24.000000,143.000000,"  The Server Rules");
    Rules1 = TextDrawCreate(22.000000,164.000000,"- Do Not Hack, or Cheat, Or Use ANY Exploits");
    Rules2 = TextDrawCreate(21.000000,195.000000,"- Respect all other admins and Players!");
    Rules3 = TextDrawCreate(21.000000,224.000000,"- Don't Use Hacks And Airbreak And Minigun!");
    Rules4 = TextDrawCreate(21.000000,252.000000,"- Failure to Follow This will Result in a Kick or Ban!");
    Rules5 = TextDrawCreate(20.000000,282.000000,"- By Seeing This, You Agree with all the rules and Terms");
    TextDrawAlignment(Rules0,0);
    TextDrawAlignment(Rules1,0);
    TextDrawAlignment(Rules2,0);
    TextDrawAlignment(Rules3,0);
    TextDrawAlignment(Rules4,0);
    TextDrawAlignment(Rules5,0);
    TextDrawBackgroundColor(Rules0,0x000000ff);
    TextDrawBackgroundColor(Rules1,0x000000ff);
    TextDrawBackgroundColor(Rules2,0x000000ff);
    TextDrawBackgroundColor(Rules3,0x000000ff);
    TextDrawBackgroundColor(Rules4,0x000000ff);
    TextDrawBackgroundColor(Rules5,0x000000ff);
    TextDrawFont(Rules0,1);
    TextDrawLetterSize(Rules0,0.199999,0.899999);
    TextDrawFont(Rules1,1);
    TextDrawLetterSize(Rules1,0.199999,0.899999);
    TextDrawFont(Rules2,1);
    TextDrawLetterSize(Rules2,0.199999,0.899999);
    TextDrawFont(Rules3,1);
    TextDrawLetterSize(Rules3,0.199999,0.899999);
    TextDrawFont(Rules4,1);
    TextDrawLetterSize(Rules4,0.199999,0.899999);
    TextDrawFont(Rules5,1);
    TextDrawLetterSize(Rules5,0.199999,0.899999);
    TextDrawColor(Rules0,0xff0000ff);
    TextDrawColor(Rules1,0xffffffff);
    TextDrawColor(Rules2,0xffffffff);
    TextDrawColor(Rules3,0xffffffff);
    TextDrawColor(Rules4,0xffffffff);
    TextDrawColor(Rules5,0xffffffff);
    TextDrawSetOutline(Rules0,1);
    TextDrawSetOutline(Rules1,1);
    TextDrawSetOutline(Rules2,1);
    TextDrawSetOutline(Rules3,1);
    TextDrawSetOutline(Rules4,1);
    TextDrawSetOutline(Rules5,1);
    TextDrawSetProportional(Rules0,1);
    TextDrawSetProportional(Rules1,1);
    TextDrawSetProportional(Rules2,1);
    TextDrawSetProportional(Rules3,1);
    TextDrawSetProportional(Rules4,1);
    TextDrawSetProportional(Rules5,1);
    TextDrawSetShadow(Rules0,1);
    TextDrawSetShadow(Rules1,1);
    TextDrawSetShadow(Rules2,1);
    TextDrawSetShadow(Rules3,1);
    TextDrawSetShadow(Rules4,1);
    TextDrawSetShadow(Rules5,1);
onplayerconnect

pawn Код:
//Rules Textdraw
    TextDrawShowForPlayer(playerid, Rules0);
    TextDrawShowForPlayer(playerid, Rules1);
    TextDrawShowForPlayer(playerid, Rules2);
    TextDrawShowForPlayer(playerid, Rules3);
    TextDrawShowForPlayer(playerid, Rules4);
    TextDrawShowForPlayer(playerid, Rules5);
onplayerspawn

pawn Код:
TextDrawHideForPlayer(playerid, Rules0);
    TextDrawHideForPlayer(playerid, Rules1);
    TextDrawHideForPlayer(playerid, Rules2);
    TextDrawHideForPlayer(playerid, Rules3);
    TextDrawHideForPlayer(playerid, Rules4);
    TextDrawHideForPlayer(playerid, Rules5);
Reply


Messages In This Thread
Rules textdraw. - by Face9000 - 25.10.2010, 12:33
Re: Rules textdraw. - by Calgon - 25.10.2010, 12:37
Re: Rules textdraw. - by HyperZ - 25.10.2010, 12:38
Re: Rules textdraw. - by Calgon - 25.10.2010, 12:39
Re: Rules textdraw. - by HyperZ - 25.10.2010, 12:44
Re: Rules textdraw. - by Face9000 - 25.10.2010, 16:37

Forum Jump:


Users browsing this thread: 2 Guest(s)