SA-MP Forums Archive
How to kick a player if he/she declines rules? - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to kick a player if he/she declines rules? (/showthread.php?tid=282588)



How to kick a player if he/she declines rules? - best_killa1 - 11.09.2011

well the title says it all. please tell me what to add here in order for the player to get kicked automatically.

------------------------------------------------------------------
if(dialogid==04041) {
if(response) {
if(listitem== {
SendClientMessage(playerid,0xFB0000FF,"You disagreed the rules, therefore leave.");
(i know something goes here but what??)
}
-----------------------------------------------------------------

the face is supposed to be 8


Re: How to kick a player if he/she declines rules? - Kitten - 11.09.2011

use the [pawn] /pawn] tags next time.

and i made the code more clear to read

pawn Код:
if(dialogid == 8) {
        if(response) {
            SendClientMessage(playerid,0xFB0000FF,"You accepted our rules yayayayayayaya");
        }
        else if(response == 0) {
            SendClientMessage(playerid,0xFB0000FF,"Piss off");
            Kick(playerid);
        }
    }



Re: How to kick a player if he/she declines rules? - best_killa1 - 11.09.2011

oh my god kitten thanks!! but yes i did use the side thingys the a_samp.inc shit and i did the EXACT thing
Kick(playerid);

then i loged in my server declined them and boom nothing happened


Re: How to kick a player if he/she declines rules? - Kitten - 11.09.2011

what you mean its **** try redownloading the a_samp.inc and mind pming me your whole rules dialog.


Re: How to kick a player if he/she declines rules? - best_killa1 - 11.09.2011

aight thanks.
ps. good to talk to you again


Re: How to kick a player if he/she declines rules? - FireCat - 11.09.2011

pawn Код:
if(dialogid == 8)
{
        if(response)
        {
            SendClientMessage(playerid,0xFB0000FF,"You accepted our rules yayayayayayaya");
        }
        else if(!response)//I like to be cocky :b
        {
            SendClientMessage(playerid,0xFB0000FF,"Piss off");
            Kick(playerid);
        }
    }



Re: How to kick a player if he/she declines rules? - [GTA]AmericanGangster - 11.09.2011

well this is a "ShowServer Rules Dialog"
pawn Код:
public OnPlayerConnect(playerid)
{
    ShowPlayerDialog(playerid, 4, DIALOG_STYLE_MSGBOX, "Welcome to Takeshis Castle", "/Takeshis Castle Rules/ \n 1)Do Not Use Hacks Or You'll be Banned. \n 2)Report All Sported Bugs. \n 3)Do NOT flame any other member.HTTP \n 4)Do not spam any command. \n 5)Flamming an admin is a bad idea. \n 6)Asking for admin will reduce your chance to be one. \n 7)Don't delete credits.\n 8)Enjoy the Server =)", "Accept", "Quit");
    return 1;
}
If someone press "QUIT" he will be kicked out of server!

this is an example of my "MINI GAME SERVER"