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: markerem.
1. Brama z Markerem.
Mam oto taki kod na bram?.Gdy wejd? w marker to brama si? otwiera a kiedy wychodz? brama si? zamyka.Chc?,aby by?o tak ?e jak wejdziesz w marker to si? otwiera a jak drugi raz wejdziesz to si? zamyka :) . Tutaj jest m?j kod:

bramaPSP createObject 11319, -2410.7998046875, -28.299804687536.299999237061 
Marker createMarker( -2409.6999511719, -32.59999847412134.400001525879'cylinder'12552550)

function 
open(hitElement
if 
isObjectInACLGroup "user."..getAccountName(getPlayerAccount(hitElement)), aclGetGroup("PSP")) then 
moveObject 
bramaPSP7000, -2410.8000488281, -28.29999923706131.39999961853 
end 
end
addEventHandler
("onMarkerHit"Markeropen)



function 
close(hitElement
if 
isObjectInACLGroup "user."..getAccountName(getPlayerAccount(hitElement)), aclGetGroup("PSP")) then 
moveObject 
bramaPSP7000, -2410.7998046875, -28.299804687536.299999237061 
end
end
addEventHandler
("onMarkerLeave"Markerclose)


Piwko czeka :piwo: