Hi,
Bei unserem invite Befehl kommt immer " Unbekannter Befehl" und "Du bist kein Leader" dann wird die Person auch nicht invited.
if(strcmp(strget(cmdtext,0), "/invite", true) == 0)
{
if(PlayerInfo[playerid][pLeader] == 2)
if(PlayerInfo[playerid][pLeader] == 3)
if(PlayerInfo[playerid][pLeader] == 4)
if(PlayerInfo[playerid][pLeader] == 5)
if(PlayerInfo[playerid][pLeader] == 6)
if(PlayerInfo[playerid][pLeader] == 7)
if(PlayerInfo[playerid][pLeader] == 8)
if(PlayerInfo[playerid][pLeader] == 9)
{
new ziel = strval(strget(cmdtext,1)), team = strval(strget(cmdtext,2)),save[45];
{
if(team==2){ PlayerInfo[ziel][pTeam] = 2; SetPlayerSkin(ziel,280); dini_IntSet(save,"Fraktion",PlayerInfo[ziel][pTeam]);}
if(team==3){ PlayerInfo[ziel][pTeam] = 3; SetPlayerSkin(ziel,286); dini_IntSet(save,"Fraktion",PlayerInfo[ziel][pTeam]);}
if(team==4){ PlayerInfo[ziel][pTeam] = 4; SetPlayerSkin(ziel,276); dini_IntSet(save,"Fraktion",PlayerInfo[ziel][pTeam]);}
if(team==5){ PlayerInfo[ziel][pTeam] = 5; SetPlayerSkin(ziel,171); dini_IntSet(save,"Fraktion",PlayerInfo[ziel][pTeam]);}
if(team==6){ PlayerInfo[ziel][pTeam] = 6; SetPlayerSkin(ziel,294); dini_IntSet(save,"Fraktion",PlayerInfo[ziel][pTeam]);}
if(team==7){ PlayerInfo[ziel][pTeam] = 7; SetPlayerSkin(ziel,287); dini_IntSet(save,"Fraktion",PlayerInfo[ziel][pTeam]);}
if(team==8){ PlayerInfo[ziel][pTeam] = 8; SetPlayerSkin(ziel,104); dini_IntSet(save,"Fraktion",PlayerInfo[ziel][pTeam]);}
if(team==9){ PlayerInfo[ziel][pTeam] = 9; SetPlayerSkin(ziel,107); dini_IntSet(save,"Fraktion",PlayerInfo[ziel][pTeam]);}
return 1;
}
}
SendClientMessage(playerid, COLOR_RED, "Du bist kein Leader einer Fraktion");
}
MFG