[FilterScript] [FS]Rules Command With Dialog
#1

Hello all, This is My First Filterscripts

This is Simple Command

An Rules Command with Dialog Box


Screenshoot:




Rulescmd.pwn (Download)
Rulescmd.amx (Download)
Rulescmd (Pastebin)

----------------------------------------------------
If you want to bring up rules when players join the server

Rulescmd(2).pwn (Download)
Rulescmd(2).amx (Download)
Rulescmd(2) (Pastebin)
-----------------------------------------------------

Thank you for reading this
Reply
#2

Maybe this better for Tutorial not for FS ...
Good Try
Reply
#3

Quote:
Originally Posted by Amunra
Посмотреть сообщение
Maybe this better for Tutorial not for FS ...
Good Try
Hehe, Thanks
Reply
#4

Too simple !
Reply
#5

This does not belong in the Filterscript section, this has a better place in the useful snippets topic.

PHP код:
strcat(string"{15FF00}1.{FFFFFF}Your Text\n");
strcat(string"{15FF00}2.{FFFFFF}Your Text\n");
strcat(string"{15FF00}3.{FFFFFF}Your Text\n");
strcat(string"{15FF00}4. {FFFFFF}Your Text\n");
strcat(string"{15FF00}5. {FFFFFF}Your Text\n");
strcat(string"{15FF00}6.{FFFFFF}Your Text\n");
strcat(string"{15FF00}7.{FFFFFF}Your Text\n");
strcat(string"{15FF00}8.{FFFFFF}Your Text\n");
strcat(string"{15FF00}9.{FFFFFF}Your Text\n");
strcat(string"{15FF00}10.{FFFFFF}Your Text\n");
strcat(string"{15FF00}11.{FFFFFF}Your Text\n");
strcat(string"{15FF00}12.{FFFFFF}Your Text\n");
strcat(string"{15FF00}13.{FFFFFF}Your Text\n\n");
strcat(string"\n\n");
ShowPlayerDialog(giveid44DIALOG_STYLE_MSGBOX"Server Rules"string"OK"""); 
This is the weird part. Why you put 4 line breaks on the end? And why do some lines have more spaces after the number, lol.

Quote:

If it helps you, you can + rep me

That even made it worse. You don't ask for reputation, you get it if someone thinks you deserve it.
Reply
#6

[QUOTE]
Quote:
Originally Posted by JasperM
Посмотреть сообщение
This does not belong in the Filterscript section, this has a better place in the useful snippets topic.

strcat(string, "{15FF00}1.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}2.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}3.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}4. {FFFFFF}Your Text\n");
strcat(string, "{15FF00}5. {FFFFFF}Your Text\n");
strcat(string, "{15FF00}6.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}7.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}8.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}9.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}10.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}11.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}12.{FFFFFF}Your Text\n");
strcat(string, "{15FF00}13.{FFFFFF}Your Text\n\n");
strcat(string, "\n\n");
ShowPlayerDialog(giveid, 44, DIALOG_STYLE_MSGBOX, "Server Rules", string, "OK", "");

This is the weird part. Why you put 4 line breaks on the end? And why do some lines have more spaces after the number, lol.
That's not problem
Reply
#7

Quote:
Originally Posted by Lzy
Посмотреть сообщение
Too simple !
Very Simple. xD
Reply
#8

You're just copying and pasting, lol. V2 won't work.

PHP код:
public OnPlayerConnect(playerid)
{
        new 
string [944];
        new 
giveid;
        
strcat(string"{15FF00}1.{FFFFFF}Your Text\n");
        
strcat(string"{15FF00}2.{FFFFFF}Your Text\n");
        
strcat(string"{15FF00}3.{FFFFFF}Your Text\n");
        
strcat(string"{15FF00}4. {FFFFFF}Your Text\n");
        
strcat(string"{15FF00}5. {FFFFFF}Your Text\n");
        
strcat(string"{15FF00}6.{FFFFFF}Your Text\n");
        
strcat(string"{15FF00}7.{FFFFFF}Your Text\n");
        
strcat(string"{15FF00}8.{FFFFFF}Your Text\n");
        
strcat(string"{15FF00}9.{FFFFFF}Your Text\n");
        
strcat(string"{15FF00}10.{FFFFFF}Your Text\n");
        
strcat(string"{15FF00}11.{FFFFFF}Your Text\n");
        
strcat(string"{15FF00}12.{FFFFFF}Your Text\n");
        
strcat(string"{15FF00}13.{FFFFFF}Your Text\n\n");
        
strcat(string"\n\n");
        
ShowPlayerDialog(giveid44DIALOG_STYLE_MSGBOX"Server Rules"string"OK""");
        return 
1;

giveid is not linked to the playerid -,-
Reply
#9

Quote:
Originally Posted by JasperM
Посмотреть сообщение
You're just copying and pasting, lol. V2 won't work.

PHP код:
public OnPlayerConnect(playerid)
{
        new 
string [944];
        new 
giveid;
        
strcat(string"{15FF00}1.{FFFFFF}Your Text\n");
        
strcat(string"{15FF00}2.{FFFFFF}Your Text\n");
        
strcat(string"{15FF00}3.{FFFFFF}Your Text\n");
        
strcat(string"{15FF00}4. {FFFFFF}Your Text\n");
        
strcat(string"{15FF00}5. {FFFFFF}Your Text\n");
        
strcat(string"{15FF00}6.{FFFFFF}Your Text\n");
        
strcat(string"{15FF00}7.{FFFFFF}Your Text\n");
        
strcat(string"{15FF00}8.{FFFFFF}Your Text\n");
        
strcat(string"{15FF00}9.{FFFFFF}Your Text\n");
        
strcat(string"{15FF00}10.{FFFFFF}Your Text\n");
        
strcat(string"{15FF00}11.{FFFFFF}Your Text\n");
        
strcat(string"{15FF00}12.{FFFFFF}Your Text\n");
        
strcat(string"{15FF00}13.{FFFFFF}Your Text\n\n");
        
strcat(string"\n\n");
        
ShowPlayerDialog(giveid44DIALOG_STYLE_MSGBOX"Server Rules"string"OK""");
        return 
1;

giveid is not linked to the playerid -,-
You can remove giveid
Reply
#10

Quote:
Originally Posted by TheseMan
Посмотреть сообщение
You can remove giveid
And change the showdialog line thingy to playerid aswell
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)