01.06.2014, 04:24
CMD:admins(playerid, params[])
{
new online, string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(PlayerInfo[playerid][pAdmin] < 1) SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command!");
foreach(Player, i)
{
if(PlayerInfo[i][pHelper])
{
online ++;
}
}
format(string, sizeof(string), "|_____Philippine Roleplay[0.3z] Admins Team_____|");
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin])
{
format(string, sizeof(string), " %s %s ", RPALN(i), RPN(i));
ShowPlayerDialog(playerid, 99999, DIALOG_STYLE_MSGBOX, "Admin Online", string, "Okay", "Close");
}
}
return 1;
}
{
new online, string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(PlayerInfo[playerid][pAdmin] < 1) SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command!");
foreach(Player, i)
{
if(PlayerInfo[i][pHelper])
{
online ++;
}
}
format(string, sizeof(string), "|_____Philippine Roleplay[0.3z] Admins Team_____|");
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin])
{
format(string, sizeof(string), " %s %s ", RPALN(i), RPN(i));
ShowPlayerDialog(playerid, 99999, DIALOG_STYLE_MSGBOX, "Admin Online", string, "Okay", "Close");
}
}
return 1;
}