Admin duty script
#1

I need an admin duty script

Only Junior admin up can use this command,
if they type /aduty they will see this message "**Adminstrator PLAYERNAME has been on duty(/report for assistance)***. they if they type /aduty again they will go off duty and see this message**Adminstrator PLAYERNAME has been on duty(/report for assistance)***.

Thanks
Reply
#2

Код:
CMD:aduty(playerid,params[])
{
SendClientMessageToAll(-1, "**Adminstrator %s has been on duty please /report for assistance");

return 1;

}
and off duty
Код:
CMD:oduty(playerid,params[])
{
SendClientMessageToAll(-1, "**Adminstrator %s logout from admin duty!.");

return 1;

}
+Rep me please.
Reply
#3

Quote:
Originally Posted by MoHaNeD14
Посмотреть сообщение
Код:
CMD:aduty(playerid,params[])
{
SendClientMessageToAll(-1, "**Adminstrator %s has been on duty please /report for assistance");

return 1;

}
and off duty
Код:
CMD:oduty(playerid,params[])
{
SendClientMessageToAll(-1, "**Adminstrator %s logout from admin duty!.");

return 1;

}
+Rep me please.
fuck you. this will not help me!
Reply
#4

Quote:
Originally Posted by ChristianIvann09
Посмотреть сообщение
fuck you. this will not help me!
You didn't expl. what you need ;333333 GTFO
Reply
#5

Quote:
Originally Posted by MoHaNeD14
Посмотреть сообщение
You didn't expl. what you need ;333333 GTFO
Did u fucking read the thread?? i already expl.
Reply
#6

Edited : See mine on Next Page
Reply
#7

Код:
new AdminDuty[MAX_PLAYERS] = false;
CMD:aduty(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return 0;
if(AdminDuty[playerid] == false;
SendClientMessage(playerid, -1, "You have gone on admin duty.");
SetPlayerHealth(playerid, 99999);
AdminDuty[playerid] = true;
new string[128];
format(string, sizeof(string), "Administrator %s has gone on admin duty.", GetPlayerName(playerid));
SendClientMessageToAll(-1, string);
else if(AdminDuty[playerid] == true;
SendClientMessage(playerid, -1, "You have gone off admin duty.");
SetPlayerHealth(playerid, 100);
AdminDuty[playerid] = false;
new string[128];
format(string, sizeof(string), "Administrator %s has gone off admin duty.", GetPlayerName(playerid));
SendClientMessageToAll(-1, string);
}
Untested. NOTE: You'll need to adjust IsPlayerAdmin to your admin system.
Reply
#8

You guys are not even reading his thread.

@OP, please give me your variables and ill fix it for you.
Reply
#9

Quote:
Originally Posted by HK
Посмотреть сообщение
You guys are not even reading his thread.

@OP, please give me your variables and ill fix it for you.
The code I provided is what he asked for... I'd say your not even reading the thread to be honest. This isn't even the scripting request section... This is for scripting help, - but we're being nice enough to still do it for him in scripting help.
Reply
#10

Quote:
Originally Posted by Abagail
Посмотреть сообщение
The code I provided is what he asked for... I'd say your not even reading the thread to be honest. This isn't even the scripting request section... This is for scripting help, - but we're being nice enough to still do it for him in scripting help.
You clearly didn't read it, you're making him able to ONLY use the command as rcon.

Quote:

Only Junior admin up can use this command

@OP, please send me the variables and i'll fix it for you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)