ShowPlayerDialog !! ( rep +1 )
#1

Hey Guys, I Created this FS But when i click Accept Nothinh Happens and When i click Decline Nothing Happens.I Want that when Someone Click Accept it Should Say : Thank for Accepting Rules !
and When Decline, It Should Say : Never Decline Our Rules ! Enjoy a kick ! and then Player Gets Kick !

Heres Code :
Код:
//RuleS diALOG
#include <a_samp>

#pragma tabsize 0

#define DIALOG_RULES 2

#if defined FILTERSCRIPT


public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	
	
#else

#endif

	public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/rules", cmdtext, true, 10) == 0)
	{
		ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX, "Rules", "1.Do Not Ask for Admin, It Decreases Your Chances.\n2.Do not Spawnkill, it Can get you to Ban.\n3.Do not Abuse any Bug, It Can cause you Temp-Ban.\n4.Do not Advertise any Server Here\n5.Last, Enjoy here !", "Accept", "Decline");
		return 1;
	}
	return 0;
}
	
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
    {
    switch(2)
        {
		case 1:
    	    {
           	switch(listitem)
        	{
        	    case 0:
        	    {
                    SendClientMessage(playerid, 0xFF0000FF, "Thank for Accepting Rules !");
                }
                case 1:
                {
                    Kick(playerid);
                }
             }
    	    }
	}
    }
    return 1;
}
tHANKS !
Reply


Messages In This Thread
ShowPlayerDialog !! ( rep +1 ) - by Avi57 - 02.06.2012, 06:49
Re: ShowPlayerDialog !! ( rep +1 ) - by tyler12 - 02.06.2012, 07:00
Re: ShowPlayerDialog !! ( rep +1 ) - by Avi57 - 02.06.2012, 07:03
Re: ShowPlayerDialog !! ( rep +1 ) - by tyler12 - 02.06.2012, 07:09
Re: ShowPlayerDialog !! ( rep +1 ) - by Gangs_Rocks - 02.06.2012, 07:13
Re: ShowPlayerDialog !! ( rep +1 ) - by Avi57 - 02.06.2012, 07:27
Re: ShowPlayerDialog !! ( rep +1 ) - by Gangs_Rocks - 02.06.2012, 07:34
Re: ShowPlayerDialog !! ( rep +1 ) - by Niko_boy - 02.06.2012, 07:39
Re: ShowPlayerDialog !! ( rep +1 ) - by Gangs_Rocks - 02.06.2012, 07:50
Re: ShowPlayerDialog !! ( rep +1 ) - by MadeMan - 02.06.2012, 07:54

Forum Jump:


Users browsing this thread: 1 Guest(s)