0 Üye ve 1 Ziyaretçi konuyu incelemekte.
addCommandHandler("vip",function(player) if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(player)), aclGetGroup ( "Admin" ) ) then local sayi = 0 for i, v in ipairs(getElementsByType("player")) do if not isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(v)), aclGetGroup ( "VIP" ) ) then aclGroupAddObject (aclGetGroup("VIP"), "user."..getAccountName(getPlayerAccount(v))) outputChatBox("[!] #00FF00"..getPlayerName(player).." #FFFFFFadlı yetkili size VIP verdi.",v, 0, 255, 0, true) sayi = sayi + 1 end end outputChatBox("[!] #00FF00"..sayi.." #FFFFFFkişiye VIP verildi.",player, 0, 255, 0, true) else outputChatBox("[!] Bu komutu kullanamazsın.",player, 255, 0, 0, true) endend)
KodaddCommandHandler("vip",function(player) if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(player)), aclGetGroup ( "Admin" ) ) then local sayi = 0 for i, v in ipairs(getElementsByType("player")) do if not isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(v)), aclGetGroup ( "VIP" ) ) then aclGroupAddObject (aclGetGroup("VIP"), "user."..getAccountName(getPlayerAccount(v))) outputChatBox("[!] #00FF00"..getPlayerName(player).." #FFFFFFadlı yetkili size VIP verdi.",v, 0, 255, 0, true) sayi = sayi + 1 end end outputChatBox("[!] #00FF00"..sayi.." #FFFFFFkişiye VIP verildi.",player, 0, 255, 0, true) else outputChatBox("[!] Bu komutu kullanamazsın.",player, 255, 0, 0, true) endend)Bu kodu deneyebilirsin.