07.02.2011, 01:49
heres a example
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 2)
{
if(response == 0)
{
case:1
{
case:0
{
SendClientMessage(playerid, COLOR_DIS_RED, "You Have Been Kicked For not Accepting the rules!");
Kick(playerid);
new stringsys [256];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(stringsys, sizeof(stringsys), "[Rules]%s Has been kicked for not accepting the rules.", pName);
SendClientMessageToAll(COLOR_DIS_RED, stringsys);
}
case: 1
{
SendClientMessage(playerid, COLOR_DIS_RED, "{00FF40}[ACCEPTED]{F2C80C}Thanks for accepting the rules!{A1C2FF}Welcome to the server!");
new Float:pX, Float:pY, Float:pZ;
PlayerPlaySound(playerid,1057,pX,pY,pZ);
}