Admin CMD help
#4

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;
}
Reply


Messages In This Thread
Admin CMD help - by Team_PRO - 01.06.2014, 04:10
Re: Admin CMD help - by rockhopper - 01.06.2014, 04:23
Re: Admin CMD help - by JeaSon - 01.06.2014, 04:23
Re: Admin CMD help - by MasonSFW - 01.06.2014, 04:24
Re: Admin CMD help - by rockhopper - 01.06.2014, 04:26
Re: Admin CMD help - by Threshold - 01.06.2014, 04:41
Re: Admin CMD help - by rockhopper - 01.06.2014, 04:50
Re: Admin CMD help - by Team_PRO - 01.06.2014, 05:02

Forum Jump:


Users browsing this thread: 3 Guest(s)