how am i do - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how am i do (
/showthread.php?tid=155980)
how am i do -
mel~vin - 20.06.2010
i have a problem i want to make a law box:
ShowPlayerDialog(playerid, 3,DIALOG_STYLE_MSGBOX, "Regeln:","\n-Cheaten ist ABSOLUT verboten \n-Wir wollen keine rassistischen ДuЯerungen oder Beleidigungen hцren \n-Dm und Driveby sollte es nur in maЯen geben \n-Dieser Server ist ein Reallife server also verhaltet euch auch so\n-Nun habt viel SpaЯ bei weiteren Fragen guckt unter /help oder fragt ьber /ask", "Akzeptieren", "Ablehnen");
how can i do it ,that the person who click "ablehnen" will be banned
sorry for my bad english
thanks for help
Re: how am i do -
DJDhan - 20.06.2010
Use OnPlayerDialogResponse.
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 3)
{
if(!response) return Ban(playerid);
//else blabla
}
return 0;
}
Re: how am i do -
mel~vin - 20.06.2010
thanks