0 Üye ve 1 Ziyaretçi konuyu incelemekte.
addCommandHandler("aclkosul", function(oyuncu) local hesapismi = getAccountName(getPlayerAccount(oyuncu)) -- Komutu yazan kişini hesap ismi if isObjectInACLGroup ("user."..hesapismi, aclGetGroup ( "Admin" ) ) -- eğer Admin grubunda ise --işlemler endend)
function isPlayerInTeam(player, team) assert(isElement(player) and getElementType(player) == "player", "Bad argument 1 @ isPlayerInTeam [player expected, got " .. tostring(player) .. "]") assert((not team) or type(team) == "string" or (isElement(team) and getElementType(team) == "team"), "Bad argument 2 @ isPlayerInTeam [nil/string/team expected, got " .. tostring(team) .. "]") return getPlayerTeam(player) == (type(team) == "string" and getTeamFromName(team) or (type(team) == "userdata" and team or (getPlayerTeam(player) or true)))endaddCommandHandler("takimkosul", function(oyuncu) -- bunun çalışması için yukardaki isPlayerInTeam fonksiyonu aynı lua dosyasında olmak zorunda. if isPlayerInTeam(oyuncu, "Admin") -- eğer Admin takımında ise --işlemler endend)