How do I make a...
#6

under OnPlayerConnect :
Код:
ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_MSGBOX, "Rules :", "rule\nrule\nrule\nrule\nrule", "Accept", "Decline");
// then /n mean a new line.

then Under OnDialogResponse add :
Код:
if(dialogid == 9999)
{
if(response == 0)
{
SendClientMessage(playerid, 0xAA3333AA, "You MUST Accept Those Rules Or Be Kicked!");
Kick(playerid);
new stringsys [256];
new pName4[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName4, MAX_PLAYER_NAME);
format(stringsys, sizeof(stringsys), "[SYSTEM] %s Has Been Kicked For Not Accepting Rules!", pName4);
SendClientMessageToAll(0xAA3333AA, stringsys);
}
if(response == 1)
{
SendClientMessage(playerid, 0xAA3333AA, "Thank You For Accepting Our Rules.");
}
return 1;
}
that code will make if the player press Accept he can play , if he pressed Decline he gets kicked feel free to PM me any question
Reply


Messages In This Thread
How do I make a... - by lionlev - 27.03.2010, 21:45
Re: How do I make a... - by aircombat - 27.03.2010, 22:32
Re: How do I make a... - by Joe Staff - 27.03.2010, 23:07
Re: How do I make a... - by lionlev - 28.03.2010, 11:17
Re: How do I make a... - by [XST]O_x - 28.03.2010, 11:24
Re: How do I make a... - by aircombat - 28.03.2010, 11:51

Forum Jump:


Users browsing this thread: 1 Guest(s)