Hallo,
ich habe den MTRPG Gamempde und habe folgendes Problem wenn man jmd tötet bekommt man 3 Wanteds und wird automatisch in die "Fraktion Criminal" "befördert". Bloß wenn man in einer Fraktion ist wie z.B. will ich nicht das man aus der Grove dann automatisch uninvitet wird und in Criminal hineinbefördert wird. Hier der Script Ausschnitt:
Lua
elseif(string == "wanteds") then
key = tonumber(key)
setPlayerWantedLevel(player, key)
outputInfobox(player, "You have now "..key.." Wanteds.", 200, 0, 0)
if(key > 2) and (mtGetElementData(player, "fraktion") ~= "criminal") and (isPermFaction(player) ~= true) then
outputInfobox(player, "You are now a criminal.", 255, 0, 0)
mtSetElementData(player, "fraktion", "criminal")
mtSetElementData(player, "class", "-")
end