Admin duty script - 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: Admin duty script (
/showthread.php?tid=498613)
Admin duty script -
ChristianIvann09 - 04.03.2014
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
Re: Admin duty script -
MohanedZzZ - 04.03.2014
Код:
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.
Re: Admin duty script -
ChristianIvann09 - 04.03.2014
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!
Re: Admin duty script -
MohanedZzZ - 04.03.2014
Quote:
Originally Posted by ChristianIvann09
fuck you. this will not help me!
|
You didn't expl. what you need ;333333 GTFO
Re: Admin duty script -
ChristianIvann09 - 04.03.2014
Quote:
Originally Posted by MoHaNeD14
You didn't expl. what you need ;333333 GTFO
|
Did u fucking read the thread?? i already expl.
Re: Admin duty script -
Crazydriver - 04.03.2014
Edited : See mine on Next Page
Re: Admin duty script -
Abagail - 04.03.2014
Код:
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.
Re: Admin duty script -
HK - 04.03.2014
You guys are not even reading his thread.
@OP, please give me your variables and ill fix it for you.
Re: Admin duty script -
Abagail - 04.03.2014
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.
Re: Admin duty script -
HK - 04.03.2014
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.