Sehr geehrte Damen und Herren , ich kriege einfach nirgends einen Timer her , da ich noch nie einen Timer gebastelt hab für das HP Setzen , ich brauche jediglich den Timer wo das Godmode Aktiviert wird und ganz unten den Kill Timer , ich bin seit
stunden am Suchen , doch erfolgslos , bitte helft mir .
if (strcmp(cmd, "/adminduty", true) == 0 || strcmp(cmd, "/aduty", true) == 0)
{
if(AdminDuty[playerid] == 0)
{
if(PlayerInfo[playerid][pAdmin] == 1)
{
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)
{
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)
{
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)
{
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)
{
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)
{
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)
{
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)
{
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)
{
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 - Support Admin 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);
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;
}
Danke im Vorraus ,
mit freundlichen Grüßen
.Croo