14.09.2009, 06:50
Im trying to create a box that pops up with my server rules that has 2 buttons on it, "Accept" and "Deny"
Now i got the box to pop up yet when i click on "Deny" to test it, it still lets me spawn..
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(listitem == 1)
SendClientMessage(playerid,COLOR_WHITE,"Thank you for agreeing.");
}
if(listitem == 0)
Kick(playerid);
}
return 0;
}
What am i doing wrong?
Thanks to anyone that can help.
Now i got the box to pop up yet when i click on "Deny" to test it, it still lets me spawn..
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(listitem == 1)
SendClientMessage(playerid,COLOR_WHITE,"Thank you for agreeing.");
}
if(listitem == 0)
Kick(playerid);
}
return 0;
}
What am i doing wrong?
Thanks to anyone that can help.