Zale?y pod co masz frakcje ACL/MYSQL czyli elementdata
Jak masz pod acl to nie doko?ca wiem jak to ma wygl?da? lecz co? na tym przyk?adzie
local gracz = getPlayerName(thePlayer)
if isObjectInACLGroup ( "user." ..gracz, aclGetGroup ( "Frakcja" ) then
outputChatBox (gracz.." Was wzywa! ", getRootElement(),120, 235, 63)
local x, y, z = getElementPosition( thePlayer )
local thePlayer = createBlip( x, y, z, 22, 0, 0, 0, 255 )
setTimer(function()
destroyElement(thePlayer)
end,2000,1)
end
end
addCommandHandler("999", pogotowie)
LUB MYSQL/ELEMENTDATA
local gracz = getPlayerName(thePlayer)
if getElementData("elementdatafrakcji") then
outputChatBox (gracz.." Was wzywa! ", getRootElement(),120, 235, 63)
local x, y, z = getElementPosition( thePlayer )
local thePlayer = createBlip( x, y, z, 22, 0, 0, 0, 255 )
setTimer(function()
destroyElement(thePlayer)
end,2000,1)
end
end
addCommandHandler("999", pogotowie)
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach