23.11.2014, 12:50
pawn Код:
ACMD:admincp(playerid, params[])
{
SPD(playerid, Admincp, DIALOG_STYLE_LIST, "Admin command panel", "Clearchat\nAdministrator commands\n","Select", "Close");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
switch(dialogid == Admincp)
{
case 1:
{
switch(listitem)
{
case 0:
{
if (pInfo[playerid][Adminlevel] < 1) return 0;
for(new i;i<100;i++)
SCMToAll(-1, " ");
}
case 1:
{
// add more cods if u need more
}
}
}
}
}
return 1;
}