/admins cmd - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /admins cmd (
/showthread.php?tid=324477)
/admins cmd -
Dw.UsHer - 09.03.2012
how i make /admins and when player type this comand show his this
HeadAdmin: Nick_Bash | on duty
Admin1337: Johnnie_Walker | off duty
Admin 4: Neo_Cloud | on duty
Admin 3: Super_Mario | off duty
etc.
how i make
Re: /admins cmd -
rati555 - 09.03.2012
pawn Код:
COMMAND:admins(playerid, params[])
{
new admtext[128],sendername[MAX_PLAYER_NAME],string[128];
SendClientMessage(playerid, COLOR_WHITE, "__________________________________________________");
SendClientMessage(playerid, COLOR_WHITE, " Admins Online:");
new found = 0;
foreach (Player,i)
{
if(PlayerInfo[i][pAdmin] >= 1)
{
switch(PlayerInfo[i][pAdmin])
{
case 10: admtext = "Lead Administrator";
case 4: admtext = "Level 4 Administrator";
case 3: admtext = "Level 3 Administrator";
case 2: admtext = "Level 2 Administrator";
case 1: admtext = "Level 1 Moderator";
}
format(sendername, sizeof(sendername), "%s", PlayerName(i));
format(string, sizeof(string), "ONLINE: %s: %s [ID: %d]", admtext, sendername, i);
SendClientMessage(playerid, COLOR_WHITE, string);
found++;
}
}
if(found == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "INFO: No admins online.");
}
SendClientMessage(playerid, COLOR_WHITE, "__________________________________________________");
return 1;
}
from my script
Re: /admins cmd -
Dw.UsHer - 09.03.2012
can you edit to show admin on duty or off duty ?