Rules textdraw.
#1

Hai all,there is a filterscript that show textdraw with custom text when player connect?

Example:

I connect and it will be showed the rules of the server.

Thanks.
Reply
#2

Can you not just search? Or figure out how to make it yourself?
Reply
#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
#4

Quote:
Originally Posted by mr.sunny
Посмотреть сообщение
Put it under onplayerconnect
pawn Код:
new rules;
ShowPlayerDialog(playerid,rules,DIALOG_STYLE_MSGBOX,"RULES RESPECT THEM!","\n-Respect other players\n-No swearing\n-Dont Insult Admins\n-Admins are highlighted WHITE in the scoreboard!\n-No Racism\n-No Spamming\n-No Hacks!","Decline","Accept");
You can change the rules
Since when was a dialog a textdraw?
Reply
#5

Quote:
Originally Posted by Calgon
Посмотреть сообщение
Since when was a dialog a textdraw?

Calgonnnnnnn

Changed xDDD
Reply
#6

Thanks alot D:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)