04.09.2012, 21:00
Hi , anyone knows a tutorial or explain me step by step how to do a new admin rank ( Scripter in my case )
I really want someone to help me
+rep
I really want someone to help me
+rep
CMD:admins( playerid, params[ ] )
{
new count, bool:online, string[128], AdminRank[70], name[24];
for(new i,g=GetMaxPlayers(); i < g; i++)
{
if(IsPlayerConnected(i))
{
if(1 <= pAdminLevel[i]/*Change this var to yours*/ <= 99999)
{
online = true;
switch(pAdminLevel[i]) /* << Change this var to yours*/
{
case 1: AdminRank = "Moderator";
case 2: AdminRank = "Junior Admin";
case 3: AdminRank = "General Admin";
case 4: AdminRank = "Senior Admin";
case 1337: AdminRank = "Head Admin";
case 1339: AdminRank = "Scripter";
case 13399: AdminRank = "Head Scripter";
}
GetPlayerName(i, name, sizeof(name));
format(string,sizeof(string), "%s %s [%s],",string, name, AdminRank);
count++;
if(count == 4)
{
format(string,sizeof(string),"Admins: %s",string);
SendClientMessage(playerid, -1, string);
string = "";
count = 0;
}
}
}
}
if(count)
{
format(string,sizeof(string),"Admins: %s",string);
SendClientMessage(playerid, -1, string);
}
if(!online) SendClientMessage(playerid, -1,"No Admin online in the list.");
return 1;
}