if (strcmp(cmd, "/adminduty", true) == 0 || strcmp(cmd, "/aduty", true) == 0)
{
if(AdminDuty[playerid] == 0)
{
if(PlayerInfo[playerid][pAdmin] == 1)
{
agod = SetTimer("AdutyGomo",100,true);
SetPlayerAttachedObject(playerid, 0, 18646, 2, 0.200000, 0.000000, 0.000000, -0.000000, 90.000000, 0.000000, 0.799999, 0.899999, 1.000000);
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Level 1 - Supporter on Duty!");
SetPlayerColor(playerid,0x870000FF);
AdminDuty[playerid] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"Ein Admin ist on Duty !",sendername,playerid);
SendClientMessageToAll(0x870000FF, string);
SetPlayerArmour(playerid, 999999);
SetPlayerHealth(playerid, 999999);
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 2)
{
agod = SetTimer("AdutyGomo",100,true);
SetPlayerAttachedObject(playerid, 0, 18646, 2, 0.200000, 0.000000, 0.000000, -0.000000, 90.000000, 0.000000, 0.799999, 0.899999, 1.000000);
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Level 2 - Moderator on Duty!");
SetPlayerColor(playerid,0x870000FF);
AdminDuty[playerid] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"Ein Admin ist on Duty !",sendername,playerid);
SendClientMessageToAll(0x870000FF, string);
SetPlayerArmour(playerid, 999999);
SetPlayerHealth(playerid, 999999);
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 3)
{
agod = SetTimer("AdutyGomo",100,true);
SetPlayerAttachedObject(playerid, 0, 18646, 2, 0.200000, 0.000000, 0.000000, -0.000000, 90.000000, 0.000000, 0.799999, 0.899999, 1.000000);
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Level 3 - Administrator on Duty!");
SetPlayerColor(playerid,0x870000FF);
AdminDuty[playerid] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"Ein Admin ist on Duty !",sendername,playerid);
SendClientMessageToAll(0x932200FF, string);
SetPlayerArmour(playerid, 999999);
SetPlayerHealth(playerid, 999999);
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 4)
{
agod = SetTimer("AdutyGomo",100,true);
SetPlayerAttachedObject(playerid, 0, 18646, 2, 0.200000, 0.000000, 0.000000, -0.000000, 90.000000, 0.000000, 0.799999, 0.899999, 1.000000);
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Level 4 - Administrator on Duty!");
SetPlayerColor(playerid,0x870000FF);
AdminDuty[playerid] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"Ein Admin ist on Duty !",sendername,playerid);
SendClientMessageToAll(0x870000FF, string);
SetPlayerArmour(playerid, 999999);
SetPlayerHealth(playerid, 999999);
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 5)
{
agod = SetTimer("AdutyGomo",100,true);
SetPlayerAttachedObject(playerid, 0, 18646, 2, 0.200000, 0.000000, 0.000000, -0.000000, 90.000000, 0.000000, 0.799999, 0.899999, 1.000000);
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Level 5 - Administrator on Duty!");
SetPlayerColor(playerid,0x870000FF);
AdminDuty[playerid] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"Ein Admin ist on Duty !",sendername,playerid);
SendClientMessageToAll(0x870000FF, string);
SetPlayerArmour(playerid, 999999);
SetPlayerHealth(playerid, 999999);
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 1337)
{
agod = SetTimer("AdutyGomo",100,true);
SetPlayerAttachedObject(playerid, 0, 18646, 2, 0.200000, 0.000000, 0.000000, -0.000000, 90.000000, 0.000000, 0.799999, 0.899999, 1.000000);
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als 1337 Administrator on Duty!");
SetPlayerColor(playerid,0x870000FF);
AdminDuty[playerid] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"Ein Admin ist on Duty !",sendername,playerid);
SendClientMessageToAll(0x870000FF, string);
SetPlayerArmour(playerid, 999999);
SetPlayerHealth(playerid, 999999);
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 2001)
{
agod = SetTimer("AdutyGomo",100,true);
SetPlayerAttachedObject(playerid, 0, 18646, 2, 0.200000, 0.000000, 0.000000, -0.000000, 90.000000, 0.000000, 0.799999, 0.899999, 1.000000);
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Stellvertretender Projektleiter on Duty!");
SetPlayerColor(playerid,0x870000FF);
AdminDuty[playerid] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"Ein Admin ist on Duty !",sendername,playerid);
SendClientMessageToAll(0x870000FF, string);
SetPlayerArmour(playerid, 999999);
SetPlayerHealth(playerid, 999999);
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 2002)
{
agod = SetTimer("AdutyGomo",100,true);
SetPlayerAttachedObject(playerid, 0, 18646, 2, 0.200000, 0.000000, 0.000000, -0.000000, 90.000000, 0.000000, 0.799999, 0.899999, 1.000000);
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als Projektleiter on Duty!");
SetPlayerColor(playerid,0x870000FF);
AdminDuty[playerid] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"Ein Admin ist on Duty !",sendername,playerid);
SendClientMessageToAll(0x870000FF, string);
SetPlayerArmour(playerid, 999999);
SetPlayerHealth(playerid, 999999);
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 2003)
{
agod = SetTimer("AdutyGomo",100,true);
SetPlayerAttachedObject(playerid, 0, 18646, 2, 0.200000, 0.000000, 0.000000, -0.000000, 90.000000, 0.000000, 0.799999, 0.899999, 1.000000);
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun als 1337 - Administrator on Duty!");
SetPlayerColor(playerid,0x870000FF);
AdminDuty[playerid] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"Ein Admin ist on Duty !",sendername,playerid);
SendClientMessageToAll(0x870000FF, string);
SetPlayerArmour(playerid, 999999);
SetPlayerHealth(playerid, 999999);
return 1;
}
}
if(AdminDuty[playerid] == 1)
{
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun nichtmehr On Duty!");
RemovePlayerAttachedObject(playerid,0);
KillTimer(agod);
SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid,100);
AdminDuty[playerid] = 0;
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
}
else
{
SetPlayerColor(playerid,TEAM_HIT_COLOR);
}
}
return 1;
}
return 1;
}
PROBLEM : Er hat immer Godmode , obwohl der Timer gekillt wird !!