Ahmed Eka Posted August 16, 2016 Share Posted August 16, 2016 (edited) انا مسوي ماركر و هيت للماركر لما تروح له تظهر لوحه و مسوي ترايقر لاني مسوي الماركر سيرفر مو كلينت الحين لما اروح للماركر ماتظهر مدري ليه addEventHandler('onMarkerHit', root, function () if localPlayer == hit then if source == Marker1 then if getElementData( hit, 'Group' ) == groupName then triggerClientEvent ( hit, "Maxeess", hit ) end end end end ) addEvent ( "Maxeess", true ) function maxes () guiSetVisible(maxWindow,true) showCursor( true ) end Edited August 16, 2016 by Guest Link to comment
[DONE]* Posted August 16, 2016 Share Posted August 16, 2016 --# server addEventHandler('onMarkerHit', root, function (hit) if source == Marker1 and getElementData( hit, 'Group' ) == groupName then triggerClientEvent ( hit, "Maxeess", hit ) end end ) --# client addEvent ( "Maxeess", true ) addEventHandler ('Maxeess',root, function maxes () guiSetVisible(bassamWindow,true) showCursor( true ) end) 1 - اللوكل بلاير ما نستخدمها بالسيرفر 2- كان ناقص تفعيل الحدث addEventHandler 3- مو لازم تضيف اكثر من تحقق لو كنت ما رح تسوي else (and) استخدم عشان تختصر 4- لو بتستخدم بارامتر للحدث لازم تضيفه function (hit) كذا Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now