CMD:serverpanel(playerid,params[])
{
if(pInfo[playerid][pAdmin] < 5 &&!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,""embed_red"[ERROR] "embed_white"You are not authorized to use this command!");
ShowPlayerDialog(playerid,1421,DIALOG_STYLE_LIST,""embed_white"Server Panel",cPanel(),"Submit","Cancel");
return 1;
}
cPanel()
{
new ServerStats[1024];
format(ServerStats,sizeof(ServerStats),""embed_white"Double-Score\t\t\t%s\n\
"embed_white"Car Capture\t\t\t%s\n\
"embed_white"Connect Messages\t\t%s\n\
"embed_white"Watch PMs\t\t\t%s\n\
"embed_white"Zones Debug\t\t\t%s",
sPanel[Doublescore] ? (""embed_green"Enabled") : (""embed_orange"Disabled"),
sPanel[CarCapture] ? (""embed_green"Enabled") : (""embed_orange"Disabled"),
sPanel[ConnectMessage] ? (""embed_green"Enabled") : (""embed_orange"Disabled"),
sPanel[WatchPM] ? (""embed_green"Enabled") : (""embed_orange"Disabled"),
sPanel[ZonesDebug] ? (""embed_green"Enabled") : (""embed_orange"Disabled"));
return ServerStats;
}
CMD:serverpanel(playerid,params[])
{
if(pInfo[playerid][pAdmin] < 5 &&!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,""embed_red"[ERROR] "embed_white"You are not authorized to use this command!");
ShowPlayerDialog(playerid,1421,DIALOG_STYLE_LIST,""embed_white"Server Panel",cPanel(),"Submit","Cancel");
return 1;
}
CMD:serverpanel(playerid,params[])
{
//if(pInfo[playerid][pAdmin] < 5 &&!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,""embed_red"[ERROR] "embed_white"You are not authorized to use this command!");
ShowPlayerDialog(playerid,1421,DIALOG_STYLE_LIST,""embed_white"Server Panel",cPanel(),"Submit","Cancel");
return 1;
}
pawn Код:
pawn Код:
|
CMD:serverpanel(playerid, params[])
{
if(pInfo[playerid][pAdmin] < 5)
{
ShowPlayerDialog(playerid,1421,DIALOG_STYLE_LIST,""embed_white"Server Panel",cPanel(),"Submit","Cancel");
}
else
{
SendClientMessage(playerid,0xFFFFFFFF,""embed_red"[ERROR] "embed_white"You are not authorized to use this command!");
}
return 1;
}
if(!IsPlayerAdmin(playerid)) .. // wft ї what does this mean ?.