[FilterScript] Rules Message If Player Connected
#1

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
Reply
#2

Good but a little too small to release
Reply
#3

Really Simple...

but nice.
Reply
#4

WTF?
Reply
#5

Only Message
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)