Cze??, mam problem z pewnym skryptem, odpalam i marker si? nie pojawia w og?le nie dzia?a.
Server:
[lua]
local mark = createPickup(1540.06873, -1674.80566, 9838.55469,3, 1275, 1)
setElementInterior(mark, 6)
addEventHandler("onPickupHit",mark,
function(player)
local accName = getAccountName ( getPlayerAccount ( player ) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Policja" ) ) then
triggerClientEvent(player, "startGGPol", root, player)
end
end
)
addEvent("przebierzPol", true)
addEventHandler("przebierzPol",root,
function(model)
local skin = getElementModel(source)
local gracz = getPlayerName(source)
local nick = getPlayerFromName(gracz)
local acc = getPlayerAccount(nick)
local accName = getAccountName ( getPlayerAccount ( source ) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Policja" ) ) then
if getAccountData(acc,"PracaPol") == false then
setAccountData(acc,"starySkinPol", skin)
setElementModel(source, model)
setAccountData(acc,"PracaPol", true)
outputChatBox("#FF0036[#919191Policja#FF0036]#919191Rozpoczynasz s?u?be",source,255,255,255,true)
toggleControl(source,"fire",true)
toggleControl(source,"aim_weapon",true)
toggleControl(source,"action", true)
else
outputChatBox("#FF0036[#919191Polic... |