Hallo Breadfish Community Ich wurde gerne wissen wie ich es hin bekomme das mann wenn mann /aduty geht , das dann die Hände in flammen stehen , wäre net wenn jemand mir dort helfen könnte .
!!!! DANKE BREADFISH COMMUNITY
COMMAND:aduty(playerid,params[])
{
#pragma unused params
if(ImTutorial[playerid] != 0)return SendClientMessage(playerid,GRAU,"Du kannst keine Befehle nutzen,da du im Tutorial bist.");
if(GetPVarInt(playerid,"Eingeloggt") == 0)return SendClientMessage(playerid,GRAU,"Du bist nicht eingeloggt!");
if(Spieler[playerid][pAWAYFROMKEYBOARD] == 1)return SendClientMessage(playerid,WRONGCMD,"Du bist im AFK-Modus und kannst somit keine Befehle nutzen."),SendClientMessage(playerid,WRONGCMD,"BENUTZE: /back");
new string[128];
if(!isPlayerAnAdmin(playerid,1))return SendClientMessage(playerid,GRAU,"Du bist kein "#SERVERTAG" Teammitglied./Du hast nicht den jeweiligen Adminrang.");
if(Spieler[playerid][pAdminOnduty] == false) //0x7F800000
{
format(string,24,"["#SERVERTAG"]%s",Spieler[playerid][pName]);
SetPlayerName(playerid,string);
SetPlayerScore(playerid,GetPlayerLevel(playerid));
format(string,sizeof(string),"%s ist nun als %s im Dienst,",SpielerName(playerid),Adminrang(playerid));
SendClientMessageToAll(ROT,string);
SendClientMessage(playerid,WEISS,"** Du bist nun im Admindienst **");
TextDrawShowForPlayer(playerid,ADUTYdraw);
Spieler[playerid][pAdminOnduty] = true;
switch(Spieler[playerid][pAdmin])
{
case 1: aDuty[playerid] = Create3DTextLabel("T-Supporter",0x7DFF00C7,30.0,40.0,50.0,MAX_STREAM_NAME_DISTANCE,GetPlayerVirtualWorld(playerid),1);
case 2: aDuty[playerid] = Create3DTextLabel("Supporter",0x00FFFFD3,30.0,40.0,50.0,MAX_STREAM_NAME_DISTANCE,GetPlayerVirtualWorld(playerid),1);
case 3: aDuty[playerid] = Create3DTextLabel("Admin 1",0x00AFFFEE,30.0,40.0,50.0,MAX_STREAM_NAME_DISTANCE,GetPlayerVirtualWorld(playerid),1);
case 4: aDuty[playerid] = Create3DTextLabel("Admin 2",0xFF00F5D9,30.0,40.0,50.0,MAX_STREAM_NAME_DISTANCE,GetPlayerVirtualWorld(playerid),1);
case 5: aDuty[playerid] = Create3DTextLabel("Admin 3",0xFF9600FF,30.0,40.0,50.0,MAX_STREAM_NAME_DISTANCE,GetPlayerVirtualWorld(playerid),1);
case 6: aDuty[playerid] = Create3DTextLabel("High Admin",0xFF4600D8,30.0,40.0,50.0,MAX_STREAM_NAME_DISTANCE,GetPlayerVirtualWorld(playerid),1);
case 7: aDuty[playerid] = Create3DTextLabel("Owner",0xD60A00CF,30.0,40.0,50.0,MAX_STREAM_NAME_DISTANCE,GetPlayerVirtualWorld(playerid),1);
case 8: aDuty[playerid] = Create3DTextLabel("Scripter",0xD60A00CF,30.0,40.0,50.0,MAX_STREAM_NAME_DISTANCE,GetPlayerVirtualWorld(playerid),1);
}
Attach3DTextLabelToPlayer(aDuty[playerid],playerid,0.0,0.0,0.6);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
}
else if(Spieler[playerid][pAdminOnduty] == true)
{
SendClientMessage(playerid,WEISS,"** Du bist nun nicht mehr im Admindienst **");
format(string,sizeof(string),"%s ist nun als %s außer Dienst.",SpielerName(playerid),Adminrang(playerid));
SendClientMessageToAll(ROT,string);
TextDrawHideForPlayer(playerid,ADUTYdraw);
Delete3DTextLabel(aDuty[playerid]);
Spieler[playerid][pAdminOnduty] = false;
SetPlayerName(playerid,Spieler[playerid][pName]);
SetPlayerScore(playerid,GetPlayerLevel(playerid));
if(Spieler[playerid][pMaske] == 1)
{
SetPlayerScore(playerid,random(50) + 122);
format(string,sizeof(string),"UNKNOWN%i",random(50) + 122);
SetPlayerName(playerid,string);
}
if(Spieler[playerid][pDuty] == 4)
{
SetPlayerScore(playerid,random(50) + 122);
format(string,24,"SWAT%i",random(50) + 122);
SetPlayerName(playerid,string);
}
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
}
return 1;
}
DUMME KOMMENTARE KÖNNT IHR EUCH SPAREN