Jump to content

[HELP] Script help


overlocus

Recommended Posts

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...