AL-SAYED Posted December 8, 2012 Share Posted December 8, 2012 (edited) server addEvent("spawnHim1",true) addEventHandler("spawnHim1",root, function() setPlayerTeam ( source, Bahrain ) outputChatBox("حيااك", source, 255, 0, 0, true) spawnPlayer (source, -3031.041015625, math.random(8177.8291015625,8177.8291015625), 5, 123) setElementModel ( source, 30 ) giveWeapon ( source , 2,1 ) createBlipAttachedTo ( source, 0, 2, 255, 0, 0 ) setPlayerNametagColor ( source, 255, 0, 0 ) setCameraTarget(source, source) addEvent("onGetVeh",true) addEventHandler("onGetVeh",root, function () local x,y,z = getElementPosition(source) local veh = createVehicle(411,x,y,z) warpPedIntoVehicle(source,veh) end ) addEvent("onVehicleExit",true) addEventHandler ( "onVehicleExit", root, function ( player ) local id = getElementModel ( source ) if ( id == 411 or id == 432 ) then destroyElement ( source ) killPed ( player ) end end ) end ) ----------------- cilent function onBh() triggerServerEvent("spawnHim1",localPlayer) showCursor(false) guiSetVisible(NussaifWindows,false) triggerServerEvent("onGetVeh",localPlayer) triggerServerEvent("onGetVeh",localPlayer) end ذا الكود مشكلته ان اذا يضغط على الصورة تصير عنده سيارة لهني الكود يشتغل صح المشكله لكنن اذا مات ورد ضغط على الصورة تجي سيارتين واذا بعد مرة ثانية مات وضغط تجي 4سيارات Edited December 11, 2012 by Guest Link to comment
AL-SAYED Posted December 8, 2012 Author Share Posted December 8, 2012 ليش جاي ترد ونت ماتعرف؟ Link to comment
./BlackBird# Posted December 8, 2012 Share Posted December 8, 2012 function onBh() triggerServerEvent("spawnHim1",localPlayer) showCursor(false) guiSetVisible(NussaifWindows,false) triggerServerEvent("onGetVeh",localPlayer) end وين الايفنت؟ Link to comment
AhmadQTR Posted December 11, 2012 Share Posted December 11, 2012 كذا؟ function onBh() triggerServerEvent("spawnHim1",localPlayer) showCursor(false) guiSetVisible(NussaifWindows,false) triggerServerEvent("onGetVeh",localPlayer) triggerServerEvent("onGetVeh",localPlayer) end addEventHandler ( "onClientResourceStart", onBh ) Link to comment
TAPL Posted December 11, 2012 Share Posted December 11, 2012 كذا؟ function onBh() triggerServerEvent("spawnHim1",localPlayer) showCursor(false) guiSetVisible(NussaifWindows,false) triggerServerEvent("onGetVeh",localPlayer) triggerServerEvent("onGetVeh",localPlayer) end addEventHandler ( "onClientResourceStart", onBh ) https://wiki.multitheftauto.com/wiki/AddEventHandler attachedTo: The element you wish to attach the handler to. The handler will only be called when the event it is attached to is triggered for this element, or one of its children. Often, this can be the root element (meaning the handler will be called when the event is triggered for any element). Link to comment
AL-SAYED Posted December 11, 2012 Author Share Posted December 11, 2012 كذا؟ function onBh() triggerServerEvent("spawnHim1",localPlayer) showCursor(false) guiSetVisible(NussaifWindows,false) triggerServerEvent("onGetVeh",localPlayer) triggerServerEvent("onGetVeh",localPlayer) end addEventHandler ( "onClientResourceStart", onBh ) نفس المشكله Link to comment
AhmadQTR Posted December 11, 2012 Share Posted December 11, 2012 كذا؟ function onBh() triggerServerEvent("spawnHim1",localPlayer) showCursor(false) guiSetVisible(NussaifWindows,false) triggerServerEvent("onGetVeh",localPlayer) triggerServerEvent("onGetVeh",localPlayer) end addEventHandler ( "onClientResourceStart", onBh ) نفس المشكله function onBh() triggerServerEvent("spawnHim1",localPlayer) showCursor(false) guiSetVisible(NussaifWindows,false) triggerServerEvent("onGetVeh",localPlayer) triggerServerEvent("onGetVeh",localPlayer) end addEventHandler ( "onClientResourceStart", root, onBh ) Link to comment
AhmadQTR Posted December 11, 2012 Share Posted December 11, 2012 ما صار function onBh() triggerServerEvent("spawnHim1",localPlayer) showCursor(false) guiSetVisible(NussaifWindows,false) triggerServerEvent("onGetVeh",localPlayer) end addEventHandler ( "onClientResourceStart", root, onBh ) Link to comment
AL-SAYED Posted December 11, 2012 Author Share Posted December 11, 2012 تعبتك بس بعد ما تغير Link to comment
AhmadQTR Posted December 11, 2012 Share Posted December 11, 2012 تعبتك بس بعد ما تغير اي شي في debugscript 3? Link to comment
abu5lf Posted December 11, 2012 Share Posted December 11, 2012 ما صار function onBh() triggerServerEvent("spawnHim1",localPlayer) showCursor(false) guiSetVisible(NussaifWindows,false) triggerServerEvent("onGetVeh",localPlayer) end addEventHandler ( "onClientResourceStart", root, onBh ) ذحين الكود ذاه وش علاقته بمشكلة الرجال؟ Link to comment
AhmadQTR Posted December 11, 2012 Share Posted December 11, 2012 ما صار function onBh() triggerServerEvent("spawnHim1",localPlayer) showCursor(false) guiSetVisible(NussaifWindows,false) triggerServerEvent("onGetVeh",localPlayer) end addEventHandler ( "onClientResourceStart", root, onBh ) ذحين الكود ذاه وش علاقته بمشكلة الرجال؟ كان مسوي تريقر لonGetVeh مرتين فحذفت واحد و اضفت ايفنت Link to comment
AL-SAYED Posted December 11, 2012 Author Share Posted December 11, 2012 ما صار شي والحل؟ Link to comment
AhmadQTR Posted December 11, 2012 Share Posted December 11, 2012 اي شي في debugscript 3? Link to comment
w7eeD Posted December 11, 2012 Share Posted December 11, 2012 هو شيء تكتبه باف8 من اجل يطلع لك مشآكل المود وتحديد المشكلة وبأي سطر ض1 : debugscript 3 ^ لا تتعب نفسك وتتعب الناس معك وانت تدور المشكلة هذا يطلعها لك , وفر الوقت والجهد والمال لمشروع ربحي اكبر ^ برعآية بنك الاتحاد خوش بنكك ما شاء الله عليه بنك مزبوط ض1 Link to comment
./BlackBird# Posted December 11, 2012 Share Posted December 11, 2012 function onBh() triggerServerEvent("spawnHim1",localPlayer) showCursor(false) guiSetVisible(NussaifWindows,false) triggerServerEvent("onGetVeh",localPlayer) end addEventHandler ( "onClientGUIClick", اسم الزر, onBh ) Link to comment
TAPL Posted December 11, 2012 Share Posted December 11, 2012 ما صار شيوالحل؟ (حط كودك كامل (كلينت + سيرفر 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