S4MuEL Posted April 30, 2013 Posted April 30, 2013 السلآمم عليكمم الكود صصحيح آمم لآ ؟ وإذآ مو صحيح وين الخطأ وآنآ بصصلحه ! إذآ لآععب من ققروب الأدمن رآحح مآركر هو وسيآرتهه ينققله لمكآن ممعين وإذآ مو من ققروب الأدمن ينهي الععممليةة مآ ينققله ! local Marker = createMarker ( x, y, z, "type", size, 0, 0, 0, 0 ) function element ( player ) local element = getPedOccupiedVehicle ( localPlayer ) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then setElementPosition ( element, x, y, z ) else outputChatBox("You Moust Be in Group Admin !",player) end addEventHandler("onClientMarkerHit",Marker, element )
فاّرس Posted April 30, 2013 Posted April 30, 2013 (edited) خبصت انت سيرفر مع كلنت؟ localPlayer -- client Only !! سوي cancelEvent() Edited April 30, 2013 by Guest Sha67 سابقاً
PaiN^ Posted April 30, 2013 Posted April 30, 2013 ما تقدر تسوي تحقق من حساب في الكلنت, لآزم تخلي الكود سيرفر أو تسوي تريقر وأنا أقول خله سيرفر أفضل " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
S4MuEL Posted April 30, 2013 Author Posted April 30, 2013 كذآ يعني ؟ local Marker = createMarker ( x, y, z, "type", size, 0, 0, 0, 0 ) function element ( player ) local element = getPedOccupiedVehicle ( localPlayer ) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then setElementPosition ( element, x, y, z ) else outputChatBox("You Moust Be in Group Admin !",player) cancelEvent() end addEventHandler("onClientMarkerHit",Marker, element )
S4MuEL Posted April 30, 2013 Author Posted April 30, 2013 خخ نسسيت ، ممآ عرففت آسوي الترآييققر :\ ممكن آحد يسويه لي ؟
فاّرس Posted April 30, 2013 Posted April 30, 2013 (edited) خخ نسسيت ، ممآ عرففت آسوي الترآييققر :\ ممكن آحد يسويه لي ؟ triggerServerEvent("nothing",localPlayer) Edited April 30, 2013 by Guest Sha67 سابقاً
iPrestege Posted April 30, 2013 Posted April 30, 2013 خخ نسسيت ، ممآ عرففت آسوي الترآييققر :\ ممكن آحد يسويه لي ؟ http://www.gta-arabs.com/gt/showthread.php?t=52789&page=14&p=413227#post413227
S4MuEL Posted April 30, 2013 Author Posted April 30, 2013 كنت بسسويه لهة ، رتحتني ، ولآههنتمم ششبآب ع المسآعدةة بششوفف كود برستيج ، ذذ
3NAD Posted April 30, 2013 Posted April 30, 2013 مآلك حاجة بالتريقر .. استخدم "onMarkerHit" -- Server Side getElementType -- شرط إثبات ان اللي لآمس الماركر لاعب isPedInVehicle -- شرط وجود الشخصية داخل السيارة
S4MuEL Posted April 30, 2013 Author Posted April 30, 2013 local Marker = createMarker ( x, y, z, "type", size, 0, 0, 0, 0 ) function element ( player ) if ( getElementType(player) == ('player') ) then local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then if ( isPedInVehicle(player) ) then setElementPosition ( element, x, y, z ) else outputChatBox("You Moust Be in Group Admin !",player) end end end end addEventHandler("onMarkerHit",Marker, element ) ?
iPrestege Posted April 30, 2013 Posted April 30, 2013 local Marker = createMarker( x, y, z, "type", size, 0, 0, 0, 0 ) addEventHandler("onMarkerHit",Marker, function ( player ) if ( getElementType ( player ) == ( "player" ) ) then if not ( isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Admin" ) ) ) then return outputChatBox("You Moust Be in Group Admin !",player,255,0,0) end local vehicle = getPedOccupiedVehicle ( player ) if ( vehicle ) then setElementPosition ( vehicle , x,y,z ) outputChatBox("* Done",player) else setElementPosition ( player , x,y,z ) outputChatBox("* Done",player) end end end )
S4MuEL Posted April 30, 2013 Author Posted April 30, 2013 لآههنت يالغآلي .. بس لو سسوينآهه isPedInVehicle بدآل getPedOccupiedVehicle وش الففرقق ؟ لو ممثلآ إستعملنآ الثآني ، ينققل سآئقق السيآرةة ومآ ينققل اللآعبين يلي رآكبين معه ؟
PaiN^ Posted April 30, 2013 Posted April 30, 2013 getPedOccupiedVehicle > يرجعلك السيارة حقت اللاعب أو البيد إللي تحدده isPedInVehicle > يتحقق هل اللاعب أو البيد في سيارة أم لا " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
S4MuEL Posted April 30, 2013 Author Posted April 30, 2013 إيهة لو كود برستيج يصير معه isPedInVehicle كيفف يتحوّل ؟ ؟ ذذ
iPrestege Posted April 30, 2013 Posted April 30, 2013 إيهةلو كود برستيج يصير معه isPedInVehicle كيفف يتحوّل ؟ ؟ ذذ مايحتاج مسوي تحقق if ( vehicle ) > ذذ
فاّرس Posted April 30, 2013 Posted April 30, 2013 ^ برستيججَ, انت ليه حاط if not ؟ كذا يعني اذا اللاعب مو في قروب الادمن, + return لو خليتها else وش بتفرق؟ Sha67 سابقاً
iPrestege Posted April 30, 2013 Posted April 30, 2013 ^ برستيججَ,انت ليه حاط if not ؟ كذا يعني اذا اللاعب مو في قروب الادمن, + return لو خليتها else وش بتفرق؟ يعني اذا ماكان بـ قروب الادمن يرجع للشات ويوقف خلاص .. فهمت ..
PaiN^ Posted April 30, 2013 Posted April 30, 2013 return > يتوقف عن الوظيفة, يعني زي ماتقول killFunction ذذ else > تحدد وش يسوي إذا في شرط ما تحقق " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
PaiN^ Posted April 30, 2013 Posted April 30, 2013 الله يعافيكـ " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
iPrestege Posted April 30, 2013 Posted April 30, 2013 ^ يعطيكم العآفيهه الله يعافيكـ و نسيت اقولكـ لية استخدمها توني اركز ذذ احب انهي الشيء بـ السرعه وتلاحظ اني ماستخدمت else الا عشان ينقل الاعب بـ السيارهـ او بدون : )
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