CRoW,,# Posted July 19, 2013 Share Posted July 19, 2013 السلام عليكم حبيت اعرف وش الخطا بذا الكود local team = getPlayerTeam (source) addEventHandler("onVehicleStartExit",getRootElement(), function () if ( team and getTeamName (team) == ("Killer")) then elseif ( source == Vehicle ) then cancelEvent() end end ) Link to comment
فاّرس Posted July 19, 2013 Share Posted July 19, 2013 addEventHandler("onVehicleStartExit",root, function (player) local team = getPlayerTeam (player) if ( team and getTeamName (team) == ("Killer")) then cancelEvent() end end ) Link to comment
3NAD Posted July 19, 2013 Share Posted July 19, 2013 عليكم السلام لم يتم التجربة addEventHandler ( "onVehicleStartExit", root, function ( ) local team = getPlayerTeam ( source ) if team then if getTeamName ( team ) == "Killer" then if source == Vehicle then cancelEvent ( ) end end end end ) Link to comment
فاّرس Posted July 19, 2013 Share Posted July 19, 2013 The source of this event is the vehicle in which a player began to exit. Link to comment
iPrestege Posted July 19, 2013 Share Posted July 19, 2013 addEventHandler ( "onVehicleStartExit", root, function ( kSource ) local team = getPlayerTeam ( kSource ) if team and getTeamFromName ( "Killer" ) then if getTeamName ( team ) == "Killer" then if source == Vehicle then cancelEvent ( ) end end end end ) Link to comment
فاّرس Posted July 19, 2013 Share Posted July 19, 2013 عنآد - فهد, ؟ وين معرفه Vehicle ممكن تقولوا لي + فهد ليه مسوي تحققين من التيم + !F{p}βľÃćҝ ĐяÊăM , خذ كودي ذذ Link to comment
./BlackBird# Posted July 19, 2013 Share Posted July 19, 2013 عنآد - فهد,؟ وين معرفه Vehicle ممكن تقولوا لي + فهد ليه مسوي تحققين من التيم + !F{p}βľÃćҝ ĐяÊăM , خذ كودي ذذ عشان يمكن هو يبي سياره محدده و كود فهد يتحقق ان الاعب معه تيم و يتحقق ان في تيم اسمه كيلر Link to comment
iPrestege Posted July 19, 2013 Share Posted July 19, 2013 عنآد - فهد,؟ وين معرفه Vehicle ممكن تقولوا لي + فهد ليه مسوي تحققين من التيم + !F{p}βľÃćҝ ĐяÊăM , خذ كودي ذذ عشان يمكن هو يبي سياره محدده و كود فهد يتحقق ان الاعب معه تيم و يتحقق ان في تيم اسمه كيلر عطاك الاجابة يتحقق انة تيم كيلر موجود تفادياَ للأخطاء .. مو تحقق مرتين تعلم وش الفرق بين الفنكشنين .. ثم أنا عدلت على كود عناد لآ آكثر .. Link to comment
فاّرس Posted July 19, 2013 Share Posted July 19, 2013 لو يبيها لسيارة محدده كان حط الكود كذا , local Vehicle = createVehicle(ID,x,y,z) addEventHandler("onVehicleStartExit",Vehicle, وليه الشرط ذذ؟ Link to comment
iPrestege Posted July 19, 2013 Share Posted July 19, 2013 لو يبيها لسيارة محدده كان حط الكود كذا , local Vehicle = createVehicle(ID,x,y,z) addEventHandler("onVehicleStartExit",Vehicle, وليه الشرط ذذ؟ عنآد - فهد,؟ وين معرفه Vehicle ممكن تقولوا لي + فهد ليه مسوي تحققين من التيم + !F{p}βľÃćҝ ĐяÊăM , خذ كودي ذذ عشان يمكن هو يبي سياره محدده و كود فهد يتحقق ان الاعب معه تيم و يتحقق ان في تيم اسمه كيلر عطاك الاجابة يتحقق انة تيم كيلر موجود تفادياَ للأخطاء .. مو تحقق مرتين تعلم وش الفرق بين الفنكشنين .. ثم أنا عدلت على كود عناد لآ آكثر .. Link to comment
K1NG Posted July 19, 2013 Share Posted July 19, 2013 عليكم السلاملم يتم التجربة addEventHandler ( "onVehicleStartExit", root, function ( ) local team = getPlayerTeam ( source ) if team then if getTeamName ( team ) == "Killer" then if source == Vehicle then cancelEvent ( ) end end end end ) اقدر اعرف ليه مسوي كل تحقق بشرط لحاله ؟؟ خخ + وش وضعها ؟ Vehicle تقدر تقلي @ !F{p}βľÃćҝ ĐяÊăM : The Best إستخدم كود Link to comment
Tete omar Posted July 19, 2013 Share Posted July 19, 2013 !F{p}βľÃćҝ ĐяÊăM عشان نفهم انت وش تقصد من كودك او توضح لنا انك تبي تسوي عدم نزول من سيارة معينة او كل السيارات ولا وش؟ "Vehicle" ممكن توضح لنا وش المتغير Link to comment
3NAD Posted July 19, 2013 Share Posted July 19, 2013 عنآد - فهد,؟ وين معرفه Vehicle ممكن تقولوا لي + فهد ليه مسوي تحققين من التيم + !F{p}βľÃćҝ ĐяÊăM , خذ كودي ذذ عزيزي ريح رآسكـ ولآ تشقي نفسكـ يعني مايبي اي سيارة Vehicle صآحب الكود محدد ان عنصر الإيفنت هو addEventHandler ( "onVehicleStartExit", root, function ( player ) local team = getPlayerTeam ( player ) if team then if team == getTeamFromName ( "Killer" ) then if source == Vehicle then cancelEvent ( ) end end end end ) Link to comment
CRoW,,# Posted July 19, 2013 Author Share Posted July 19, 2013 خلاص اشتغل كود ذا بيست + انا ابيهه ع التيم وبسس Link to comment
Tete omar Posted July 19, 2013 Share Posted July 19, 2013 ثاني مرة توضح لنا وش تبي بالضبط .. مو تحط لنا كود وتقول صلحوه Link to comment
#DRAGON!FIRE Posted July 19, 2013 Share Posted July 19, 2013 ثاني مرة توضح لنا وش تبي بالضبط .. مو تحط لنا كود وتقول صلحوه # يبغى الشخص ماي قدر ينزل من السيارة والشخص يكون له تيم معين # يعني الشخص اي ما بخليه يقدر ينزل من السيارة له تيم محدد Link to comment
Tete omar Posted July 19, 2013 Share Posted July 19, 2013 خلاص مو محتاجة شرح, انا انبهه بس عشان ثاني مرة يوضح وش يبي بالتفصيل 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