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.2998046875, 36.299999237061 ) 
Marker = createMarker( -2409.6999511719, -32.599998474121, 34.400001525879, 'cylinder', 1, 255, 255, 0)

function 
open(hitElement) 
if 
isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(hitElement)), aclGetGroup("PSP")) then 
moveObject 
( bramaPSP, 7000, -2410.8000488281, -28.299999237061, 31.39999961853 ) 
end 
end
addEventHandler
("onMarkerHit", Marker, open)



function 
close(hitElement) 
if 
isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(hitElement)), aclGetGroup("PSP")) then 
moveObject 
( bramaPSP, 7000, -2410.7998046875, -28.2998046875, 36.299999237061 ) 
end
end
addEventHandler
("onMarkerLeave", Marker, close)


Piwko czeka :piwo: