AL-SAYED Posted October 6, 2012 Share Posted October 6, 2012 بغيت كود اذا اللاعب دش سيارة يصير كراش له يعني سيارة الشرطة اذا احد من فريق الحرامية ركبها يطلع منها تلقائيا Link to comment
hassan.k.s.a Posted October 6, 2012 Share Posted October 6, 2012 جرب هذا --Server Side function v( thePlayer ) local ID = getElementModel(getPedOccupiedVehicle(thePlayer)) if ( ID == 000) then--ركب اي دي السياره لشرطه بدل 000 if ( getTeamName == name) then--name ضع اسم التيم الشرطه بدل setElementHealth ( source, getElementHealth(source) - 100 ) end end end addEventHandler("onVehicleEnter",root,v) او function v( thePlayer ) local ID = getElementModel(getPedOccupiedVehicle(thePlayer)) if ( ID == 000) then--ركب اي دي السياره لشرطه بدل 000 if ( getTeamName == name) then--name ضع اسم التيم الشرطه بدل setElementHealth ( thePlayer, getElementHealth(thePlayer) - 100 ) end end end addEventHandler("onVehicleEnter",root,v) Link to comment
abu5lf Posted October 6, 2012 Share Posted October 6, 2012 استخدم removePedFromVehicle Link to comment
AL-SAYED Posted October 6, 2012 Author Share Posted October 6, 2012 انا استخدم السباون للافرقة Link to comment
AL-SAYED Posted October 6, 2012 Author Share Posted October 6, 2012 uppppppppppppppppppppp Link to comment
abu5lf Posted October 6, 2012 Share Posted October 6, 2012 ما يشتغل استخدم removePedFromVehicle Link to comment
TAPL Posted October 6, 2012 Share Posted October 6, 2012 policeVehicles = { [598]=true, [596]=true, [597]=true, [599]=true } -- آرقام سيارات الشرطة function enterVehicle(player) local Team = getPlayerTeam(player) and getTeamName(getPlayerTeam(player)) if (policeVehicles[getElementModel(source)]) and (Team ~= "Police") then removePedFromVehicle(player) outputChatBox("Only policeman can enter police cars!", player) end end addEventHandler("onVehicleEnter", root, enterVehicle) Link to comment
hassan.k.s.a Posted October 6, 2012 Share Posted October 6, 2012 معليش كنت مستعجل جرب هذا function planeEnter ( theVehicle, seat, jacked ) local NameTeam = getTeamFromName ( "a" )--بأسم قروب الحراميه a استبدل if NameTeam then local id = getElementModel ( theVehicle ) if id == 000 then --استبدل 000 بأيدي السياره blowVehicle ( theVehicle ) end end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), planeEnter ) واذا اكثر من سياره function planeEnter ( theVehicle, seat, jacked ) local NameTeam = getTeamFromName ( "a" )--بأسم قروب الحراميه a استبدل if NameTeam then local id = getElementModel ( theVehicle ) if id == 000 or id == 000 or id == 000 or id == 000 then--استبدل 000 بأيدي السياره blowVehicle ( theVehicle ) end end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), planeEnter ) Link to comment
AL-SAYED Posted October 6, 2012 Author Share Posted October 6, 2012 قيه خطا في لاين4 مالك يا تابل Link to comment
hassan.k.s.a Posted October 6, 2012 Share Posted October 6, 2012 اطرح الأكواد وانت معدل عليها + ملف meta Link to comment
TAPL Posted October 6, 2012 Share Posted October 6, 2012 قيه خطا في لاين4 مالك يا تابل كنت ناسي قوس أنسخ الكود مره ثانية Link to comment
hassan.k.s.a Posted October 6, 2012 Share Posted October 6, 2012 اذا تبيها تنسحب تفضل --server side-- function planeEnter ( theVehicle, seat, jacked) local NameTeam = getTeamFromName ( "a" )--بأسم قروب الحراميه a استبدل if NameTeam then local id = getElementModel ( theVehicle ) if id == 000 or id == 000 or id == 000 then--استبدل 000 بأيدي السياره destroyElement(theVehicle) end end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), planeEnter ) --meta-- Link to comment
AL-SAYED Posted October 6, 2012 Author Share Posted October 6, 2012 policeVehicles = { [598]=true, [596]=true, [597]=true, [599]=true } -- آرقام سيارات الشرطة function enterVehicle(player) local Team = getPlayerTeam(player) and getTeamName(getPlayerTeam(player)) if (policeVehicles[getElementModel(source)]) and (Team ~= "Police") then removePedFromVehicle(player) outputChatBox("Only policeman can enter police cars!", player) end end addEventHandler("onVehicleEnter", root, enterVehicle) وين احط القوس policeVehicles = { [598]=true, [596]=true, [597]=true, [599]=true } -- آرقام سيارات الشرطة function enterVehicle(player) (local Team = getPlayerTeam(player) and getTeamName(getPlayerTeam(player)) if (policeVehicles[getElementModel(source)]) and (Team ~= "Police") then removePedFromVehicle(player) outputChatBox("Only policeman can enter police cars!", player) end end addEventHandler("onVehicleEnter", root, enterVehicle) Link to comment
hassan.k.s.a Posted October 6, 2012 Share Posted October 6, 2012 لاحول ياحبيبي ياذكي يابابا جربت الكود حقي؟ Link to comment
AL-SAYED Posted October 6, 2012 Author Share Posted October 6, 2012 ما يشتغل تعرف مود تختيار الافرقة الا اسمة سباون يشتغل عليه؟ Link to comment
TAPL Posted October 6, 2012 Share Posted October 6, 2012 policeVehicles = { [598]=true, [596]=true, [597]=true, [599]=true } -- آرقام سيارات الشرطة function enterVehicle(player) local Team = getPlayerTeam(player) and getTeamName(getPlayerTeam(player)) if (policeVehicles[getElementModel(source)]) and (Team ~= "Police") then removePedFromVehicle(player) outputChatBox("Only policeman can enter police cars!", player) end end addEventHandler("onVehicleEnter", root, enterVehicle) جرب Link to comment
Tete omar Posted October 6, 2012 Share Posted October 6, 2012 policeVehicles = { [598]=true, [596]=true, [597]=true, [599]=true } -- آرقام سيارات الشرطة function enterVehicle(player) local Team = getPlayerTeam(player) and getTeamName(getPlayerTeam(player)) if (policeVehicles[getElementModel(source)]) and (Team ~= "Police") then removePedFromVehicle(player) outputChatBox("Only policeman can enter police cars!", player) end end addEventHandler("onVehicleEnter", root, enterVehicle) جرب بس هالكود راح يدخل الاعب في سيارة البوليس ما راح يمنعه .. راح يطلع له بالشات Only policeman can enter police cars! بس الأفضل policeVehicles = { [598]=true, [596]=true, [597]=true, [599]=true } -- آرقام سيارات الشرطة function enterVehicle(player) local Team = getPlayerTeam(player) and getTeamName(getPlayerTeam(player)) if (policeVehicles[getElementModel(source)]) and (Team ~= "Police") then removePedFromVehicle(player) cancelEvent() outputChatBox("Only policeman can enter police cars!", player) end end addEventHandler("onVehicleEnter", root, enterVehicle) Link to comment
TAPL Posted October 7, 2012 Share Posted October 7, 2012 لا يا عزيزي بيركب السيارة و تلقائياً بيخرج منها لان الكود ذا موجود removePedFromVehicle(player) Link to comment
Tete omar Posted October 7, 2012 Share Posted October 7, 2012 لا يا عزيزيبيركب السيارة و تلقائياً بيخرج منها لان الكود ذا موجود removePedFromVehicle(player) ايه بس cancelEvent الأفضل ... Link to comment
TAPL Posted October 7, 2012 Share Posted October 7, 2012 لا يا عزيزيبيركب السيارة و تلقائياً بيخرج منها لان الكود ذا موجود removePedFromVehicle(player) ايه بس cancelEvent الأفضل ... cancelEvent جرب بـ وقل لي أيش يصير معك 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