Question (Admin Duty)
#1

ENG:
Hello i have a problem,
i need a Script that makes a Onduty Admin "Unkillable",
if a Admin writes /adminduty // /aduty.
Who i can make that?!
PS: Script Below the lines
Sorry for my bad English.
Thanks in advance.

GER:
Hallo ich habe ein Problem,
ich brauche ein Script das einen Onduty Admin "Unkillbar" macht,
wenn der Admin /Adminduty bzw. /aduty schreibt.
Wie kann ich das machen?
PS: Das Script soweit wie ich bin steht unten.
Danke im voraus.







____________________________________SCRIPT________ __________________________________________________ _________________

Код:
	if (strcmp(cmd, "/adminduty", true) == 0 || strcmp(cmd, "/aduty", true) == 0)
	{
		if(AdminDuty[playerid] == 0)
		{
			if(PlayerInfo[playerid][pAdmin] == 1 || PlayerInfo[playerid][pAdmin] == 2 || PlayerInfo[playerid][pAdmin] == 3)
			{
				SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Moderator im Dienst!");
				SetPlayerColor(playerid,GRUEN);
				AdminDuty[playerid] = 1;
 				Mod[playerid] = Create3DTextLabel("*Moderator on Duty*",GRUEN,30.0,40.0,50.0,40.0,0);
				Attach3DTextLabelToPlayer(Mod[playerid], playerid, 0.0, 0.0, 0.4);
				GetPlayerName(playerid, sendername, sizeof(sendername));
				format(string,sizeof(string),"* Moderator %s[ID:%d] ist nun im Dienst [Er ist grьn markiert]*",sendername,playerid);
				SendClientMessageToAll(0x932200FF, string);
				SetPlayerArmour(playerid, 100);
				return 1;
			}
			if(PlayerInfo[playerid][pAdmin] == 4 || PlayerInfo[playerid][pAdmin] == 1337)
			{
				SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Super-Moderator im Dienst!");
				SetPlayerColor(playerid,GELB);
				AdminDuty[playerid] = 1;
 				Supermod[playerid] = Create3DTextLabel("*Super-Moderator on Duty*",GELB,30.0,40.0,50.0,40.0,0);
				Attach3DTextLabelToPlayer(Supermod[playerid], playerid, 0.0, 0.0, 0.4);
				GetPlayerName(playerid, sendername, sizeof(sendername));
				format(string,sizeof(string),"*Super-Moderator %s[ID:%d] ist nun im Dienst [Er ist gelb markiert]*",sendername,playerid);
				SendClientMessageToAll(COLOR_RED, string);
				SetPlayerArmour(playerid, 100);
				return 1;
			}
			if(PlayerInfo[playerid][pAdmin] >=1338)
			{
				SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Administrator im Dienst!");
				SetPlayerColor(playerid,ROT);
				AdminDuty[playerid] = 1;
 				Admin[playerid] = Create3DTextLabel("*Administrator on Duty*",ROT,30.0,40.0,50.0,40.0,0);
				Attach3DTextLabelToPlayer(Admin[playerid], playerid, 0.0, 0.0, 0.4);
				GetPlayerName(playerid, sendername, sizeof(sendername));
				format(string,sizeof(string),"Administrator %s[ID:%d] ist nun im Dienst [Er ist rot markiert]*",sendername,playerid);
				SendClientMessageToAll(COLOR_RED, string);
				SetPlayerArmour(playerid, 100);
				return 1;
			}
			if(PlayerInfo[playerid][pSupporter] >= 1)
			{
				SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Supporter im Dienst!");
				SetPlayerColor(playerid,BLAU);
				AdminDuty[playerid] = 1;
	 			Supporter[playerid] = Create3DTextLabel("*Moderator on Duty*",BLAU,30.0,40.0,50.0,40.0,0);
				Attach3DTextLabelToPlayer(Supporter[playerid], playerid, 0.0, 0.0, 0.4);
				GetPlayerName(playerid, sendername, sizeof(sendername));
				format(string,sizeof(string),"Supporter %s[ID:%d] ist nun im Dienst [Er ist blau markiert]*",sendername,playerid);
				SendClientMessageToAll(COLOR_RED, string);
				SetPlayerArmour(playerid, 100);
				return 1;
			}
		}
		if(AdminDuty[playerid] == 1)
		{
			SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun nichtmehr On Duty!");
			Delete3DTextLabel(Admin[playerid]);
			Delete3DTextLabel(Supermod[playerid]);
			Delete3DTextLabel(Mod[playerid]);
			Delete3DTextLabel(Supporter[playerid]);
			Delete3DTextLabel(Admin[playerid]);
			Delete3DTextLabel(Supermod[playerid]);
			Delete3DTextLabel(Mod[playerid]);
			Delete3DTextLabel(Supporter[playerid]);
			SetPlayerArmour(playerid, 0);
			AdminDuty[playerid] = 0;
			{
			    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
			    {
			        SetPlayerColor(playerid, NAMECOLOR_LSCOP);
			    }
			    else
			    {
					SetPlayerColor(playerid,TEAM_HIT_COLOR);
				}
			}
			return 1;
		}
		return 1;
Reply


Messages In This Thread
Question (Admin Duty) - by KiLLeX - 01.06.2012, 23:18
Re: Question (Admin Duty) - by iGetty - 01.06.2012, 23:21

Forum Jump:


Users browsing this thread: 1 Guest(s)