01.06.2011, 08:52
Hello Fellow Scripters,
I have recently just come across the part of setting up my /admins bit in my script
This part basically just shows you the current admins online and if they are on duty or not
If anyone could help many thanks to you
This is what i want
Yes i am a little embarrassed at my effort of scripting :S
Cheers, Steve
I have recently just come across the part of setting up my /admins bit in my script
This part basically just shows you the current admins online and if they are on duty or not
If anyone could help many thanks to you
pawn Code:
if (strcmp(cmd, "/admins", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_RED, " ** Admins Online: **");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "%s: %s ( %s ) Duty: %s", pAdmin, sendername, playerid, pAOnDuty);
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
}
}
}
}
return 1;
}
pawn Code:
format(string, 256, "<Admin Rank>: <Name> ( ID ) Duty: <If they are on duty"
Cheers, Steve