0 Üye ve 1 Ziyaretçi konuyu incelemekte.
addCommandHandler("silahal", function(oyuncu, _) local hesapismi = getAccountName(getPlayerAccount(oyuncu)) if isObjectInACLGroup("user." ..hesapismi, aclGetGroup("Console")) then for i,oyuncular in pairs(getElementsByType("player")) do takeAllWeapons(oyuncular) end outputChatBox(getPlayerName(p).."Tüm oyuncuların silahlarını aldın.", oyuncu, 255,0,0,true) endend)
Arkadaşlar silah alma scriptten hata alıyorum chatbox kısmından hata alıyorum yardımcı olurmusunuzKod: luaaddCommandHandler("silahal", function(oyuncu, _) local hesapismi = getAccountName(getPlayerAccount(oyuncu)) if isObjectInACLGroup("user." ..hesapismi, aclGetGroup("Console")) then for i,oyuncular in pairs(getElementsByType("player")) do takeAllWeapons(oyuncular) end outputChatBox(getPlayerName(p).."Tüm oyuncuların silahlarını aldın.", oyuncu, 255,0,0,true) endend)
addCommandHandler("silahal", function(oyuncu, _) local hesapismi = getAccountName(getPlayerAccount(oyuncu)) if isObjectInACLGroup("user." ..hesapismi, aclGetGroup("Console")) then for i,oyuncular in pairs(getElementsByType("player")) do takeAllWeapons(oyuncular) end outputChatBox(getPlayerName(source).."Tüm oyuncuların silahlarını aldın.", oyuncu, 255,0,0,true) endend)
getPlayerName Silince Çalışıyor Orda Bir Hata Yapmışsın KNk Eşitliklere bak hata orda "..getPlayerName(thePlayer).." Ben Attım serverime çalıştırdım..
Buyur test etmedim;Kod: luaaddCommandHandler("silahal", function(oyuncu, _) local hesapismi = getAccountName(getPlayerAccount(oyuncu)) if isObjectInACLGroup("user." ..hesapismi, aclGetGroup("Console")) then for i,oyuncular in pairs(getElementsByType("player")) do takeAllWeapons(oyuncular) end outputChatBox(getPlayerName(source).."Tüm oyuncuların silahlarını aldın.", oyuncu, 255,0,0,true) endend)
source yerine oyuncu yaz