SA-MP Forums Archive
[FilterScript] [FS]Rules Command With Dialog - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS]Rules Command With Dialog (/showthread.php?tid=607892)



[FS]Rules Command With Dialog - TheseMan - 25.05.2016

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


Re: [FS]Rules Command With Dialog - Amunra - 25.05.2016

Maybe this better for Tutorial not for FS ...
Good Try


Re: [FS]Rules Command With Dialog - TheseMan - 25.05.2016

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


Re: [FS]Rules Command With Dialog - Lzy - 25.05.2016

Too simple !


Re: [FS]Rules Command With Dialog - JasperM - 25.05.2016

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.


Re: [FS]Rules Command With Dialog - TheseMan - 25.05.2016

[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


Re: [FS]Rules Command With Dialog - TheseMan - 25.05.2016

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


Re: [FS]Rules Command With Dialog - JasperM - 25.05.2016

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 -,-


Re: [FS]Rules Command With Dialog - TheseMan - 25.05.2016

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


Re: [FS]Rules Command With Dialog - JasperM - 25.05.2016

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