HomeCalendarFAQSearchRegisterLog in

Share | 
 

 New admin duty system

View previous topic View next topic Go down 
AuthorMessage
avatar
[MG]Godmask


Posts : 565

Join date : 2014-03-09

Location : UK


PostSubject: New admin duty system    Sun Jul 26, 2015 12:18 am

I spent 10 minutes making this. I hope you guys like it (For admins)
This is a new /aduty or /adminduty. A box will pop in the middle of the screen explain what you need to do when on admin duty
CMD:aduty(playerid)
{
if(pInfo[playerid][pLogged] == 1)
{
if(pInfo[playerid][pAdminLevel] >= 1)
{
if(pInfo[playerid][pAdminDuty] == 0)
{
pInfo[playerid][pAdminDuty] = 1;

new adutyonstring[128];
format(adutyonstring, sizeof(adutyonstring), "%s is now on admin duty" ,PlayerName(playerid));
SendClientMessageToAll(-1,adutyonstring);
SetPlayerColor(playerid,0x007826ff);
SetPlayerHealth(playerid,999999.0);
SendClientMessage(playerid,COLOR_RED,"Please do not abuse you commands. Remember when going to play please do /aduty.");
{
new adminduty[991];
strcat(adminduty,""chat" YOUR ON ADMIN DUTY!\\n Being on admin duty doesn't mean you can attack players when you have full HP. Help out new players if asking in the public chat\n");
strcat(adminduty,""chat" Answer there private messages when sent to you!\\n");
strcat(adminduty,""chat" Host events, don't let players down. You can host the followering - Racing, duels, tdm and sky dive events if wanted to.\\n");
strcat(adminduty,""chat" The mean commands you'll be using will be:\n */ban\n*/kick\n*/jail/*/sethealth(armour).\\n Please view /acmds > Pick your levels if needed. \n Made by Godmask");



Code:
CMD:aduty(playerid)
{
   if(pInfo[playerid][pLogged] == 1)
   {
      if(pInfo[playerid][pAdminLevel] >= 1)
      {
         if(pInfo[playerid][pAdminDuty] == 0)
         {
         pInfo[playerid][pAdminDuty] = 1;

         new adutyonstring[128];
         format(adutyonstring, sizeof(adutyonstring), "%s is now on admin duty" ,PlayerName(playerid));
         SendClientMessageToAll(-1,adutyonstring);
         SetPlayerColor(playerid,0x007826ff);
         SetPlayerHealth(playerid,999999.0);
         SendClientMessage(playerid,COLOR_RED,"Please do not abuse you commands. Remember when going to play please do /aduty.");
         {
   new adminduty[991];
   strcat(adminduty,""chat" YOUR ON ADMIN DUTY!\\n Being on admin duty doesn't mean you can attack players when you have full HP. Help out new players if asking in the public chat\n");
   strcat(adminduty,""chat" Answer there private messages when sent to you!\\n");
   strcat(adminduty,""chat" Host events, don't let players down. You can host the followering - Racing, duels, tdm and sky dive events if wanted to.\\n");
   strcat(adminduty,""chat" The mean commands you'll be using will be:\n */ban\n*/kick\n*/jail/*/sethealth(armour).\\n Please view /acmds > Pick your levels if needed. \n Made by Godmask");
   
Back to top Go down
https://www.youtube.com/user/godmaskzxd
avatar
Dodger
Senior Administrator
Senior Administrator

Posts : 105

Join date : 2014-03-23

Age : 17

Location : Egypt


PostSubject: Re: New admin duty system    Sun Jul 26, 2015 12:52 am


_________________
Back to top Go down
avatar
[MG]Godmask


Posts : 565

Join date : 2014-03-09

Location : UK


PostSubject: Re: New admin duty system    Sun Jul 26, 2015 1:45 am

I posted it here because i'am no longer an admin here. Don't move it!!!
Back to top Go down
https://www.youtube.com/user/godmaskzxd

Hasti[K]


Posts : 8

Join date : 2015-07-20

Age : 17

Location : Argentina


PostSubject: Re: New admin duty system    Sun Jul 26, 2015 2:18 am

How long do were you? Surprised Godd job friend!
Back to top Go down
avatar
[ΜǤ]ҜŞŦΔŘ_
Donator
Donator

Posts : 680

Join date : 2014-02-22

Age : 23

Location : Jamaica


PostSubject: Re: New admin duty system    Sun Jul 26, 2015 3:17 am

Good looking code Godmask(Professionally done) Very Happy
Back to top Go down
avatar
[MG]_iBlaze[iD]
Senior Administrator
Senior Administrator

Posts : 642

Join date : 2014-06-03

Age : 19

Location : Trivandrum, Kerala, India.


PostSubject: Re: New admin duty system    Sun Jul 26, 2015 4:18 am

Great job Godmask. Even though I don't know anything about scripting, this one looks tough.

_________________
29 / 07 / 2014: Attained [MG] Community tag.
20 / 08 / 2014: Accepted as [MG] staff by [MG]Irish_
21 / 08 / 2014: Hired as a Moderator by [MG]True[DT]
08 / 09 / 2014: Promoted to Admin level 2 by [MG]Alshan_007
14 / 10 / 2014: Promoted to Admin level 3 by [MG]Alshan_007
If you need any help, feel free to PM me.



Maximum Gaming Official Server IP: 87.98.241.207:7799
Back to top Go down
avatar
[MG]Terminator[IA]
Head Administrator
Head Administrator

Posts : 1643

Join date : 2014-04-22

Age : 19

Location : Iran


PostSubject: Re: New admin duty system    Sun Jul 26, 2015 7:55 am

K star change your Avatar -_-
~~~~~~~~~
spam spam

_________________
Back to top Go down
avatar
[MG]Maxx[kM]
Head Manager
Head Manager

Posts : 1176

Join date : 2014-04-16

Age : 17

Location : São Paulo, Brazil


PostSubject: Re: New admin duty system    Sun Jul 26, 2015 4:04 pm

Bad optimized...
Sad
& player health must be 100000 not others to enable god
Sad

_________________
Back to top Go down
avatar
[MG]Godmask


Posts : 565

Join date : 2014-03-09

Location : UK


PostSubject: Re: New admin duty system    Sun Jul 26, 2015 5:28 pm

@[MG]Maxx[kM] wrote:
Bad optimized...
Sad
& player health must be 100000 not others to enable god
Sad

It doesn't set players to 9999 hp it sets admin. Hard to explain
Back to top Go down
https://www.youtube.com/user/godmaskzxd
avatar
[MG]Terminator[IA]
Head Administrator
Head Administrator

Posts : 1643

Join date : 2014-04-22

Age : 19

Location : Iran


PostSubject: Re: New admin duty system    Sun Jul 26, 2015 8:19 pm

Im not scripter and dont understand any shit out of these shits

_________________
Back to top Go down
avatar
[ℳḠ]Ѧαґøη
Senior Administrator
Senior Administrator

Posts : 450

Join date : 2014-10-26

Location : Doha, Qatar


PostSubject: Re: New admin duty system    Sun Jul 26, 2015 8:54 pm

@[MG]Godmask wrote:
@[MG]Maxx[kM] wrote:
Bad optimized...
Sad
& player health must be 100000 not others to enable god
Sad

It doesn't set players to 9999 hp it sets admin. Hard to explain
BRUH

_________________
Regards,
[ℳḠ]Ѧαґøη_
Back to top Go down
https://www.youtube.com/channel/UCQu1moEOqUj6_wFrfCEGUsQ
avatar
Shake_It[MG]
Lead Administrator
Lead Administrator

Posts : 317

Join date : 2014-09-21

Age : 18

Location : Portugal


PostSubject: Re: New admin duty system    Fri Jul 31, 2015 11:15 am

Hamm, this is a suggestion ? Well anyway +1 cool suggestion good work Mask!
Back to top Go down

Sponsored content



PostSubject: Re: New admin duty system    

Back to top Go down
 

New admin duty system

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» IN THE LINE OF DUTY
» Duty & Valour
» One Woman in India dies every hour due to the dowry system
» Immune System
» Chelino Travel System

Permissions in this forum:You cannot reply to topics in this forum
MaximumGaming :: San Andreas Multiplayer ( SA:MP ) :: Suggestions-