SA-MP Forums Archive
[FilterScript] Rules Message If Player Connected - 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] Rules Message If Player Connected (/showthread.php?tid=410992)



Rules Message If Player Connected - faiznurfaza - 27.01.2013

This My First Filterscript

PHP код:
#include <a_samp>
#include <color>
#define dialogconnect 1001
public OnPlayerConnect(playerid)
{
   
ShowPlayerDialog(playeriddialogconnectDIALOG_STYLE_MSGBOX"Rules""No Cheat\nNo Spamming\nNo Insult\nNo Sara""Agree""No");
   return 
1;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == dialogconnect)
    {
        if(
response)
        {
            
SendClientMessage(playeridCOLOR_GREEN"Thank you for agreeing to the server rules!");
        }
        else
        {
            
SendClientMessage(playeridCOLOR_RED"You MUST agree to the server rules to play here.");
            
Kick(playerid);
        }
        return 
1;
    }
    return 
1;

You Need include Color, Goto Sub Forum Include
Sorry If Bad XD


Re: Rules Message If Player Connected - Sellize - 27.01.2013

Good but a little too small to release


Re: Rules Message If Player Connected - NickHaudMTA - 27.01.2013

Really Simple...

but nice.


Re: Rules Message If Player Connected - MarkzD - 27.01.2013

WTF?


Re: Rules Message If Player Connected - faiznurfaza - 28.01.2013

Only Message