Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: scrolla
1. Drzwi na scrolla
[lua]bm = createMarker(2326.2, 2525.88086, 1028.81396, "cylinder", 1.0, 0, 0, 0, 0) -- gdzie ma byc marker w ktorym bedzie sie scrollowac
d = createObject (3089, 2326.1000976563, 2523.8999023438, 1029.0999755859, 0, 0, 90) -- podajesz koordy obiektu

local kategoria_animacji = "CRIB"
local animacja = "CRIB_Use_Switch"

function isPlayerInPoliceFaction(plr)
local uid=getElementData(plr,'player:uid')
if not uid then return end

local result=exports['ogrpg-db']:dbGet('SELECT 1 FROM ogrpg_factions WHERE code=? AND uid=? LIMIT 1;', "SAPD", uid)
if result[1] then
return true
else
return false
end
end


function od ( thePlayer)
if isElementWithinMarker(thePlayer, bm) then
if isPlayerInPoliceFaction(thePlayer) then --Tutaj zmieniasz tylko "Policja"
moveObject ( d, 2500, 2326.1000976563, 2522.4, 1029.0999755859 ) -- Koordy otwartych drzwi
setTimer(setPedAnimation, 1066.66, 1, thePlayer)
setPedAnimation(thePlayer,kategoria_animacji,animacja,true,false,false)
end
end
end

function zd ( thePlayer)
if isElementWithinMarker(thePlayer, bm) then
if isPlayerInPoliceFaction(thePlayer) then --Tutaj zmieniasz tylko "Policja"
moveObject ( d, 2500, 2326.1000976563, 2523.8999023438, 1029.0999755859 ) -- koordy zamknietch drzwi
setTimer(setPedAnimation, 1066.66, 1, thePlayer)
setPedAnimation...
2. Drzwi na scrolla
Witajcie mam do was pytanie jak zrobi? drzwi na 2 markery o to kod
[lua]--]] Autor skryptu: Patrix
--W bindach pomaga?: Atex
--W animacji pomaga?: Emm
--Zakaz zmiany autora![[--

bm = createMarker(2383.78, -1668.60, 13.54, "cylinder", 1.0, 0, 0, 0, 255) -- gdzie ma byc marker w ktorym bedzie sie scrollowac
bm = createMarker(2384.30, -1670.83, 14.55, "cylinder", 1.0, 0, 0, 0, 255) -- gdzie ma byc marker w ktorym bedzie sie scrollowac
d = createObject (3089,2383.89, -1669, 13.89, 0, 0, 0) -- podajesz koordy obiektu

local kategoria_animacji = "CRIB"
local animacja = "CRIB_Use_Switch"

function od ( thePlayer)
if isElementWithinMarker(thePlayer, bm) then
if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("SAPD")) then --Tutaj zmieniasz tylko "Policja"
moveObject ( d, 3089, 2382.39, -1669, 13.89 ) -- Koordy otwartych drzwi
setTimer(setPedAnimation, 1066.66, 1, thePlayer)
setPedAnimation(thePlayer,kategoria_animacji,animacja,true,false,false)
end
end
end

function zd ( thePlayer)
if isElementWithinMarker(thePlayer, bm) then
if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("SAPD")) then --Tutaj zmieniasz tylko "Policja"
moveObject ( d, 3089,2383.89, -1669, 13.89 ) -- koordy zamknietych drzwi
...
3. [SKRYPT] Drzwi pod scrolla
Witam, chcia?bym wam zaprezentowa? skrypt mojego autorstwa na drzwi pod scrolla.

Screen?w nie b?d? dodawa? bo w skrypcie jest wszystko opisane.

W zbindowaniu pomaga?: Atex
W animce pomaga?: Emm

Zakaz zmiany autora!


Nowa lepsza wersja na dole! / / /

Link:
Ukryta wiadomość / Hidden message(aby ją zobaczyć musisz postawić użytkownikowi)
Wiadomość została ukryta, aby ją przeczytać należy się zalogować.


W razie b??d?w pisa?.