hi all
i need some help with my script
Warning : "Bad argument @ setAccountData [ Expected account at argument 1, got boolean]"
lua code:
function licenta ()
local playeraccount = getPlayerAccount ( source )
setAccountData ( playeraccount, "Licenta", "licentiat" )
takePlayerMoney ( source, 500)
end
addEvent( "onBuy", true )
addEventHandler( "onBuy", resourceRoot, licenta )
meta code:
Hey all. I have a problem with my script.
Why allow everyone to access the command?
function abcd(source,command)
local Team = getPlayerTeam(source) and getTeamName(getPlayerTeam(source))
if (Team ~= "Police") then
createObject(8082,1556,-1612,13.60000038147,0,0,0.25)
addCommandHandler("police",abcd)