About /Secretadmin -
Cr4zyR0d - 29.09.2011
Hi, is there any FS or something that have a command like /Secretadmin (Yo hide yourself out of /admins list, so the players can't see the admin who did /secretadmin in the list)
Re: About /Secretadmin -
sherlock - 29.09.2011
You would have to do this yourself to match your admin script i believe or find an admin script with that command
Respuesta: About /Secretadmin -
Cr4zyR0d - 29.09.2011
Well, I know a little bit of Scripting commands, but I don't have any Idea on how I will create that command..
Because I have to edit /admins and all that :/
Re: About /Secretadmin -
WoodPecker - 29.09.2011
Change the [pAdmin] to your admin system or if you are using pAdmin already then its ok.
PHP код:
if(strcmp(cmd, "/admins", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "Admins Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] > 1 && PlayerInfo[i][pSecretAdmin] == 0)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "%d Admin: %s",PlayerInfo[i][pAdmin],giveplayer);
SendClientMessage(playerid, COLOR_GREY, string);
}
}
}
}
else if(PlayerInfo[playerid][pAdmin] > 1)
{
SendClientMessage(playerid, COLOR_WHITE, "Admins Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] > 0)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "%d Admin: %s",PlayerInfo[i][pAdmin],giveplayer);
SendClientMessage(playerid, COLOR_GREY, string);
}
}
}
}
}
return 1;
}
if(strcmp(cmd, "/secretadmin", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if(PlayerInfo[playerid][pSecretAdmin] == 0)
{
PlayerInfo[playerid][pSecretAdmin] = 1;
return SendClientMessage(playerid, COLOR_GRAD1, " You are now secret admin!");
}
if(PlayerInfo[playerid][pSecretAdmin] == 1)
{
PlayerInfo[playerid][pSecretAdmin] = 0;
return SendClientMessage(playerid, COLOR_GRAD1, " You are no longer secret admin!");
}
}
}
}
Respuesta: About /Secretadmin -
Cr4zyR0d - 29.09.2011
Код:
C:\Users\Abdiel\Desktop\LSRW-server files\gamemodes\usrp1.pwn(25767) : error 017: undefined symbol "pSecretAdmin"
C:\Users\Abdiel\Desktop\LSRW-server files\gamemodes\usrp1.pwn(25801) : error 017: undefined symbol "pSecretAdmin"
C:\Users\Abdiel\Desktop\LSRW-server files\gamemodes\usrp1.pwn(25803) : error 017: undefined symbol "pSecretAdmin"
C:\Users\Abdiel\Desktop\LSRW-server files\gamemodes\usrp1.pwn(25806) : error 017: undefined symbol "pSecretAdmin"
C:\Users\Abdiel\Desktop\LSRW-server files\gamemodes\usrp1.pwn(25808) : error 017: undefined symbol "pSecretAdmin"
C:\Users\Abdiel\Desktop\LSRW-server files\gamemodes\usrp1.pwn(32471) : warning 204: symbol is assigned a value that is never used: "time"
C:\Users\Abdiel\Desktop\LSRW-server files\gamemodes\usrp1.pwn(33624) : warning 211: possibly unintended assignment
C:\Users\Abdiel\Desktop\LSRW-server files\gamemodes\usrp1.pwn(36720) : warning 202: number of arguments does not match definition
C:\Users\Abdiel\Desktop\LSRW-server files\gamemodes\usrp1.pwn(54489) : warning 203: symbol is never used: "hospybed"
C:\Users\Abdiel\Desktop\LSRW-server files\gamemodes\usrp1.pwn(19422) : warning 204: symbol is assigned a value that is never used: "iHOSPITAL"
C:\Users\Abdiel\Desktop\LSRW-server files\gamemodes\usrp1.pwn(19422 -- 54489) : warning 203: symbol is never used: "iSprunk1"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
Here we go with 5 errors :/
how to fix them?
I will appreciate your help
Thanks
Re: About /Secretadmin -
WoodPecker - 29.09.2011
Find your pInfo and add pSecretAdmin there, and find OnPlayerLogin,OnPlayerRegister,OnPlayerConnect and add this pSecretAdmin there too, its like the pAdmin , search the pAdmin on your script and paste the pSecretAdmin above from the pAdmin, then find the line 32471 "time" and remove it, find the line 19422 "iHOSPITAL" and remove it same for the iSprunk1
Re: About /Secretadmin - [L3th4l] - 29.09.2011
PS: This isn't the scripting help section!
Re: About /Secretadmin -
playbox12 - 29.09.2011
If you knew a little about scripting, this wouldn't be a problem. You simply create a variable for all admins, if an admin types /secretadmin, the variable gets set to 1, then in the loop you check if the variable is 1 before displaying them, if it is, then don't let them appear on /adminlist.
And as said above, there is another category dedicated to scripting help.
Re: About /Secretadmin -
Markx - 30.09.2011
Can you give me the code of your /admins please?
Re: About /Secretadmin - suhrab_mujeeb - 30.09.2011
You can use LuxAdmin /hide to get spme idea.