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); SendClientMessageToAll(ROT,Player);SetPlayerSkin(playerid, 278); SetPVarInt(playerid,"oldskin",GetPlayerSkin(playerid)); SetPlayerArmour(playerid, 100); return 1; }
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);
SendClientMessageToAll(ROT,Player);SetPlayerSkin(playerid, 278);
SetPVarInt(playerid,"oldskin",GetPlayerSkin(playerid));
SetPlayerArmour(playerid, 100);
return 1;
}
Wie Kriege ich es hin das man,wen man wieder /aduty macht das der alte Skin wiederkommt?