Hallo Leute,
ich habe hier ein /aduty und hab versucht mit Godmode aber es kallpt Nicht :s
Bitte um Hilfe!
if (strcmp(cmd, "/adminduty", true) == 0 || strcmp(cmd, "/aduty", true) == 0)
{
if(AdminDuty[playerid] == 0)
{
if(PlayerInfo[playerid][pAdmin] == 1)
{
SetPlayerColor(playerid,0xFF0A00FF);
AdminDuty[playerid] = 1;
Mod[playerid] = Create3DTextLabel("Moderator On-Duty",0xFF0A00FF,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),"SERVER: !Moderator %s ist nun als Admin im Dienst!",sendername,playerid);
SendClientMessageToAll(0xFF0A00FF, string);
SetPlayerColor(playerid, 0xF81414);
SetPlayerHealth(playerid, 100000000000);
SetPlayerArmour(playerid, 100000000000);
return 1;
}
else if(PlayerInfo[playerid][pAdmin] == 2)
{
SetPlayerColor(playerid,0xF81414);
AdminDuty[playerid] = 1;
Mod[playerid] = Create3DTextLabel("Super-Moderator On-Duty",0xFF0A00FF,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),"SERVER: Super-Moderator %s ist nun als Admin im Dienst!",sendername,playerid);
SendClientMessageToAll(0xFF0A00FF, string);
SetPlayerColor(playerid, 0x00FFEE);
SetPlayerHealth(playerid, 100000000000);
SetPlayerArmour(playerid, 100000000000);
return 1;
}
else if(PlayerInfo[playerid][pAdmin] == 3)
{
SetPlayerColor(playerid,0xF81414);
AdminDuty[playerid] = 1;
Supermod[playerid] = Create3DTextLabel("Administrator on Duty",0xFF0A00FF,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),"!SERVER: Adminstrator %s ist nun als Admin im Dienst!",sendername,playerid);
SendClientMessageToAll(0xFF0A00FF, string);
SetPlayerColor(playerid, 0xF81414);
SetPlayerHealth(playerid, 100000000000);
SetPlayerArmour(playerid, 100000000000);
return 1;
}
else if(PlayerInfo[playerid][pAdmin] ==1337)
{
SetPlayerColor(playerid,0x00FFEE);
AdminDuty[playerid] = 1;
Admin[playerid] = Create3DTextLabel("Head admin on-Duty!",0xFF0A00FF,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),"!SERVER: Head Admin %s ist nun als Admin im Dienst!",sendername,playerid);
SendClientMessageToAll(0xFF0A00FF, string);
SetPlayerColor(playerid, 0xF81414);
SetPlayerHealth(playerid, 100000000000);
SetPlayerArmour(playerid, 100000000000);
return 1;
}
else if(PlayerInfo[playerid][pAdmin] ==1338)
{
SetPlayerColor(playerid,0xF81414);
AdminDuty[playerid] = 1;
Admin[playerid] = Create3DTextLabel("Global Adminstrator On-Duty",0xFF0A00FF,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),"!SERVER: Global Adminstrator %s ist nun als Admin im Dienst!",sendername,playerid);
SendClientMessageToAll(0xFF0A00FF, string);
SetPlayerColor(playerid, 0x00FFEE);
SetPlayerHealth(playerid, 100000000000);
SetPlayerArmour(playerid, 100000000000);
return 1;
}
else if(PlayerInfo[playerid][pAdmin] ==2000)
{
SetPlayerColor(playerid,0xF81414);
AdminDuty[playerid] = 1;
Admin[playerid] = Create3DTextLabel("High Admin On-Duty",0xFF0A00FF,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),"!SERVER: High Admin %s ist als Admin im Dienst! ",sendername,playerid);
SendClientMessageToAll(0xFF0A00FF, string);
SetPlayerColor(playerid, 0x2EFEF7);
SetPlayerHealth(playerid, 100000000000);
SetPlayerArmour(playerid, 100000000000);
return 1;
}
else if(PlayerInfo[playerid][pAdmin] ==2001)
{
SetPlayerColor(playerid,0xF81414);
AdminDuty[playerid] = 1;
Admin[playerid] = Create3DTextLabel("stelv. Projektleiter On-Duty",0xFF0A00FF,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),"!SERVER: Stelv. Projektleiter %s ist nun als Admin im Dienst!",sendername,playerid);
SendClientMessageToAll(0xFF0A00FF, string);
SetPlayerColor(playerid, 0x00FFEE);
SetPlayerHealth(playerid, 100000000000);
SetPlayerArmour(playerid, 100000000000);
return 1;
}
else if(PlayerInfo[playerid][pAdmin] >=2002)
{
SetPlayerColor(playerid,0xF81414);
AdminDuty[playerid] = 1;
Admin[playerid] = Create3DTextLabel("Projektleiter on Duty",0xFF0A00FF,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),"!SERVER: Projektleiter & Scripter %s ist nun als Admin On-Duty!",sendername,playerid);
SendClientMessageToAll(0xFF0A00FF, string);
SetPlayerColor(playerid, 0x00FFEE);
SetPlayerHealth(playerid, 100000000000);
SetPlayerArmour(playerid, 100000000000);
return 1;
}
else if(PlayerInfo[playerid][pAdmin] >=2003)
{
SetPlayerColor(playerid,0xF81414);
AdminDuty[playerid] = 1;
Admin[playerid] = Create3DTextLabel("Scripter on Duty",0xFF0A00FF,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),"SERVER: Scripter %s ist nun im Dienst",sendername,playerid);
SendClientMessageToAll(0xFF0A00FF, string);
SetPlayerColor(playerid, 0x00FFEE);
SetPlayerHealth(playerid, 100000000000);
SetPlayerArmour(playerid, 100000000000);
return 1;
}
else if(PlayerInfo[playerid][pSupporter] >= 1)
{
SetPlayerColor(playerid,0xF81414);
AdminDuty[playerid] = 1;
Supporter[playerid] = Create3DTextLabel("Supporter on Duty",0xFF0A00FF,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),"SERVER: Supporter %s ist nun im Dienst",sendername,playerid);
SendClientMessageToAll(0xFF0A00FF, string);
SetPlayerHealth(playerid, 100000000000);
SetPlayerArmour(playerid, 100000000000);
return 1;
}
}
MFG