Server 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: Server rules (
/showthread.php?tid=448409)
Server rules -
KimSangBum - 04.07.2013
Hello guyz
I want to know how to add a list of server rules it should appear in the first step that player log in if he agree he can go to register panel & if he refuse he get auto kick
Re: Server rules -
Guest123 - 04.07.2013
i use Text Draws
Re: Server rules -
IceBilizard - 04.07.2013
do like this
pawn Код:
public OnPlayerConnect(playerid)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST,"Rules" ,"1-Do not use hacks in server\nAlways Respect everyone","Accept","Decline");
return 1;
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(1)
{
case KickBox :
{
if(!response)
{
SendClientMessage(playerid,COLOR_RED, "You Declined and have been kicked Goodbye!");
Kick(playerid);
}
else
{
SendClientMessage(playerid,COLOR_YELLOW, "You Accepted our rules Have fun!");
//Here you can add register dialog
}
}
}
return 1;
}