[HELP]how to get /admins info
#1

This is my /setadmin script..

Quote:

enum pInfo
{
pPass,
pCash,
pAdmin,
pSkin,
pKills,
pDeaths
}
new PlayerInfo[MAX_PLAYERS][pInfo];
CMDetadmin(playerid, params[])
{
new pID, value;
if(!IsPlayerAdmin(playerid)) return 0;
else if(sscanf(params, "ui", pID, value)) return SendClientMessage(playerid, -1, "Usage: /setadmin (id) (level)");
else if(value < 0 || value > 5) return SendClientMessage(playerid, -1, "Only levels 0-5");
else if(pID == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "Player Is Not Currently Connected");
else
{
new string[128], string1[128], target[MAX_PLAYER_NAME], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
GetPlayerName(pID, target, sizeof(target));
format(string, sizeof(string), "You have set %s Admin level to %i", target, value);
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "Your Admin level has been set to %i by %s", value, pName);
SendClientMessage(pID, -1, string1);
PlayerInfo[pID][pAdmin] = value;
}
return 1;
}

How can i get /admins .. Which shows a dialog box of the admins ONLINE?
Reply


Messages In This Thread
[HELP]how to get /admins info - by fuckingcruse - 16.03.2015, 16:40
Re: [HELP]how to get /admins info - by Luis- - 16.03.2015, 16:49
Re: [HELP]how to get /admins info - by CalvinC - 16.03.2015, 16:52
Re: [HELP]how to get /admins info - by Luis- - 16.03.2015, 16:53
Re: [HELP]how to get /admins info - by ATGOggy - 16.03.2015, 16:56
Re: [HELP]how to get /admins info - by Luis- - 16.03.2015, 16:58
Re: [HELP]how to get /admins info - by ATGOggy - 16.03.2015, 17:00
Respuesta: Re: [HELP]how to get /admins info - by JuanStone - 16.03.2015, 17:05
Re: [HELP]how to get /admins info - by Luis- - 16.03.2015, 17:05
Re: [HELP]how to get /admins info - by ATGOggy - 16.03.2015, 17:08
Re: [HELP]how to get /admins info - by fuckingcruse - 17.03.2015, 03:03
Re: [HELP]how to get /admins info - by ATGOggy - 17.03.2015, 08:06

Forum Jump:


Users browsing this thread: 1 Guest(s)