pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == CPS_Dialog)
{
if(response)
{
if(listitem == 0)
{
SendRconCommand("exit");
}
else if(listitem == 1)
{
SendRconCommand("gmx");
}
else if(listitem == 2)
{
SendRconCommand("reloadbans");
}
else if(listitem == 3)
{
SendRconCommand("reloadlog");
}
}
return 1;
}
return 0;
}