How to kick a player if he/she declines rules?
#1

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

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);
        }
    }
Reply
#3

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

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

aight thanks.
ps. good to talk to you again
Reply
#6

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);
        }
    }
Reply
#7

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"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)