18.10.2011, 19:28
NEVERMIND, I never explained it well, Moderator Delete this Post!
Hello, I am still a noob at Scripting and I need this changed, If I get it changed and I read the Lines then it will help me learn And Then Next Time, I'll Make one on my own
Let me explain
Here is an Example Code
Here is my Piece of Code:
PS: I want so that Admins with pSpecOps are NOT shown on the list
Hello, I am still a noob at Scripting and I need this changed, If I get it changed and I read the Lines then it will help me learn And Then Next Time, I'll Make one on my own
Let me explain
Here is an Example Code
pawn Code:
format(string, 256, "[ONLINE]: %s (%s): %s [ID: %d] (on duty)", admtext, PlayerInfo[i][pAdmName], sendername, i);
SendClientMessage(playerid, TEAM_VAGOS_COLOR, string);
PS: I want so that Admins with pSpecOps are NOT shown on the list
pawn Code:
if(strcmp(cmd, "/admins", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playerid, COLOR_GREEN, "Admins Online:");
for(new i = 0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] > 0)
{
if(PlayerInfo[i][pAdmin] <= PlayerInfo[playerid][pAdmin])
{
//----------------------------------------------
new division[64];
if(PlayerInfo[i][pSpecOps] == 1)
{
division = "SO";
}
else if(PlayerInfo[i][pBanAppealer] == 1)
{
division = "BA";
}
else if(PlayerInfo[i][pGangMod] == 1)
{
division = "GM";
}
else if(PlayerInfo[i][pGangMod] == 0 && PlayerInfo[i][pBanAppealer] == 0 && PlayerInfo[i][pSpecOps] == 0)
{
division = "None";
}
//----------------------------------------------
new atext[64];
if(PlayerInfo[i][pAdmin] == 1)
{
atext = "Moderator";
}
else if(PlayerInfo[i][pAdmin] == 2)
{
atext = "Junior Admin";
}
else if(PlayerInfo[i][pAdmin] == 3)
{
atext = "General Admin";
}
else if(PlayerInfo[i][pAdmin] == 4)
{
atext = "Senior Admin";
}
else if(PlayerInfo[i][pAdmin] == 1337)
{
atext = "Head Admin";
}
else if(PlayerInfo[i][pAdmin] == 1338)
{
atext = "Head Admin";
}
else if(PlayerInfo[i][pAdmin] == 99999)
{
atext = "Executive Admin";
}
else if(PlayerInfo[i][pAdmin] == 999999)
{
atext = "Executive Admin";
}
else if(PlayerInfo[i][pAdmin] == 9999999)
{
atext = "Executive Admin";
}
else if(PlayerInfo[i][pAdmin] == 99999999)
{
atext = "Executive Admin";
}
else if(PlayerInfo[i][pAdmin] == 999999999)
{
atext = "Executive Admin";
}
format(string, sizeof(string), "[%s]: %s *[%s]*", atext, PlayerName(i), division);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "If you have questions regarding gameplay, or the server use /new.");
SendClientMessage(playerid, COLOR_GRAD2, "If you see suspicious happenings/players /report [id] [reason].");
}
}
return 1;
}