13.12.2012, 18:32
First of all, return false at the end of the callback if it's filterscript, otherwise true.
Why do you make a /showrules command with listitem? Change it to a msgBox and use:
Why do you make a /showrules command with listitem? Change it to a msgBox and use:
pawn Код:
if(dialogid == rules)
{
if(response)
{
new pname[24];
new string[128];
GetPlayerName(playerid,pname,sizeof(pname));
format(string,sizeof(string),"%s(%d) Has readed the server rules by typing /showrules{FFFFFF}!",pname,playerid);
SendClientMessageToAll(COLOR_GREEN,string);
for(new i = 0; i < MAX_PLAYERS; i++)
{
TogglePlayerControllable(i, 1);
}
}
else
{
new pname[24];
new string[128];
GetPlayerName(playerid,pname,sizeof(pname));
Kick(playerid);
format(string,sizeof(string),"%s(%d) Has been kicked Reason:Disagreeing with server-rules{FFFFFF}, you can check it by typing /showrules!",pname,playerid);
SendClientMessageToAll(COLOR_GREEN,string);
for(new i = 0; i < MAX_PLAYERS; i++)
{
TogglePlayerControllable(i, 1);
}
}
return 1;
}