overlocus Posted August 18, 2018 Share Posted August 18, 2018 How can i add aclGroupAddObject on this code i want when this code started it gives moderator function Tag2Fonksiyon() if getPlayerMoney(source) < Fiyat then outputChatBox("#FFFFFF[#FF0000!#FFFFFF] Yeterli miktarda paranız bulunmamaktadır.", source, 0, 150, 255, true) return end takePlayerMoney(source, Fiyat) outputChatBox("#FFFFFF[#00FF00!#FFFFFF] Seçilen tag başarıyla satın alındı. #00ff0050.000₺", source, 0, 200, 255, true) local playeraccount = getPlayerAccount(source) setAccountData(playeraccount, "playerTeam", "Tag_Polis") end addEvent("Tag2Event", true) addEventHandler("Tag2Event", Element, Tag2Fonksiyon ) Link to comment
overlocus Posted August 18, 2018 Author Share Posted August 18, 2018 Anybody can help? Link to comment
VenomOG Posted August 18, 2018 Share Posted August 18, 2018 if accountName then aclGroupAddObject (aclGetGroup("Admin"), "user."..accountName) 2 hours ago, overlocus said: How can i add aclGroupAddObject on this code i want when this code started it gives moderator function Tag2Fonksiyon() if getPlayerMoney(source) < Fiyat then outputChatBox("#FFFFFF[#FF0000!#FFFFFF] Yeterli miktarda paranız bulunmamaktadır.", source, 0, 150, 255, true) return end takePlayerMoney(source, Fiyat) outputChatBox("#FFFFFF[#00FF00!#FFFFFF] Seçilen tag başarıyla satın alındı. #00ff0050.000₺", source, 0, 200, 255, true) local playeraccount = getPlayerAccount(source) aclGroupAddObject (aclGetGroup("Admin"), "user."..playeraccount) end addEvent("Tag2Event", true) addEventHandler("Tag2Event", Element, Tag2Fonksiyon ) Done Link to comment
sFxMTA Posted August 18, 2018 Share Posted August 18, 2018 What do you get in /debugscript 3? Link to comment
overlocus Posted August 19, 2018 Author Share Posted August 19, 2018 money cost = fiyat Link to comment
overlocus Posted August 19, 2018 Author Share Posted August 19, 2018 Anybody can help to me? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now