iPrestege Posted February 22, 2013 Share Posted February 22, 2013 سوية سيرفر ترايقر ! Link to comment
jafar Posted February 22, 2013 Share Posted February 22, 2013 والله مادري سويت كذاوماضبط احس اني مخربط الدنيا \ GUIEditor_Grid = {} Vehicle = guiCreateWindow(453,218,302,379,"x[ Vehicle Systm ]x",false) guiSetVisible(Vehicle ,false) guiSetAlpha(Vehicle,1) set = guiCreateButton(0.0795,0.8575,0.4007,0.1135,"x[ set ]x",true,Vehicle) close = guiCreateButton(0.5166,0.8602,0.4007,0.1135,"x[ close ]x",true,Vehicle) GUIEditor_Grid[1] = guiCreateGridList(0.106,0.1214,0.7583,0.6887,true,Vehicle) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Vehicle ",0.2) for i = 1, 1 do guiGridListAddRow(GUIEditor_Grid[1]) end guiGridListSetItemText(GUIEditor_Grid[1],0,1,"sultan", false, false) guiSetAlpha(GUIEditor_Grid[1],0.89999997615814) theMarker = createMarker ( -3568.44434, -3001.70483, 45.00222, "cylinder", 2, 0, 255, 0, 255 ) addEventHandler("onClientMarkerHit",theMarker, function (player) if (getElementType (player) == "player") and (player == localPlayer) and not isPedInVehicle (player) then guiSetVisible(Vehicle,true) showCursor(true) end end ) function Buttons() if source == set then triggerServerEvent("set",localPlayer) set = createVehicle ( 429, -3568.44434, -3001.70483, 45.00222 ) warpPedIntoVehicle ( source, set ) elseif source == close then guiSetVisible(Vehicle,false) showCursor(false) end end addEventHandler ( "onClientGUIClick",root,Buttons) انت عافس الكلنت بالسيرفر Link to comment
Sfa7 Posted February 22, 2013 Author Share Posted February 22, 2013 والله ماادري الوحات توني متعلمها طيب الحين الترايقر لازم ملف بروح ؟ ولا كيف Link to comment
jafar Posted February 22, 2013 Share Posted February 22, 2013 (edited) والله ماادري الوحات توني متعلمها طيب الحين الترايقر لازم ملف بروح ؟ ولا كيف اروح ملف سيرفر وذا الامر اضل فـي الكلنت https://wiki.multitheftauto.com/wiki/triggerServerEvent وتسوي ايفنت باسم الترقر فـِي سيرفر ذذ Edited February 22, 2013 by Guest Link to comment
TAPL Posted February 22, 2013 Share Posted February 22, 2013 والله مادري سويت كذاوماضبط احس اني مخربط الدنيا \ GUIEditor_Grid = {} Vehicle = guiCreateWindow(453,218,302,379,"x[ Vehicle Systm ]x",false) guiSetVisible(Vehicle ,false) guiSetAlpha(Vehicle,1) set = guiCreateButton(0.0795,0.8575,0.4007,0.1135,"x[ set ]x",true,Vehicle) close = guiCreateButton(0.5166,0.8602,0.4007,0.1135,"x[ close ]x",true,Vehicle) GUIEditor_Grid[1] = guiCreateGridList(0.106,0.1214,0.7583,0.6887,true,Vehicle) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Vehicle ",0.2) for i = 1, 1 do guiGridListAddRow(GUIEditor_Grid[1]) end guiGridListSetItemText(GUIEditor_Grid[1],0,1,"sultan", false, false) guiSetAlpha(GUIEditor_Grid[1],0.89999997615814) theMarker = createMarker ( -3568.44434, -3001.70483, 45.00222, "cylinder", 2, 0, 255, 0, 255 ) addEventHandler("onClientMarkerHit",theMarker, function (player) if (getElementType (player) == "player") and (player == localPlayer) and not isPedInVehicle (player) then guiSetVisible(Vehicle,true) showCursor(true) end end ) function Buttons() if source == set then triggerServerEvent("set",localPlayer) set = createVehicle ( 429, -3568.44434, -3001.70483, 45.00222 ) warpPedIntoVehicle ( source, set ) elseif source == close then guiSetVisible(Vehicle,false) showCursor(false) end end addEventHandler ( "onClientGUIClick",root,Buttons) سطر 40 و 41 مالهم داعي بالكلينت ولا تنسى تضيفه بالميتا سيرفر server.lua أفتح ملف جديد و حط اسمه و استخدم الكود addEvent addEventHandler و بعدها أنقل الكود الي بالكلينت الي بسطر40 و 41 إلى ملف السيرفر Link to comment
iPrestege Posted February 22, 2013 Share Posted February 22, 2013 صح عليك بس سوي ملف سيرفر ثاني وضيف الايفنت addEvent -- سوية بـ السيرفر بـ اسم الايفنت الي مسوية addEventHandler -- سوية بـ السيرفر بـ اسم الايفنت الي مسوية createVehicle < للسيرفر انقلة warpPedIntoVehicle < للسيرفر انقلة Link to comment
Sfa7 Posted February 22, 2013 Author Share Posted February 22, 2013 كلنت GUIEditor_Grid = {} Vehicle = guiCreateWindow(453,218,302,379,"x[ Vehicle Systm ]x",false) guiSetVisible(Vehicle ,false) guiSetAlpha(Vehicle,1) set = guiCreateButton(0.0795,0.8575,0.4007,0.1135,"x[ set ]x",true,Vehicle) close = guiCreateButton(0.5166,0.8602,0.4007,0.1135,"x[ close ]x",true,Vehicle) GUIEditor_Grid[1] = guiCreateGridList(0.106,0.1214,0.7583,0.6887,true,Vehicle) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Vehicle ",0.2) for i = 1, 1 do guiGridListAddRow(GUIEditor_Grid[1]) end guiGridListSetItemText(GUIEditor_Grid[1],0,1,"sultan", false, false) guiSetAlpha(GUIEditor_Grid[1],0.89999997615814) theMarker = createMarker ( -3568.44434, -3001.70483, 45.00222, "cylinder", 2, 0, 255, 0, 255 ) addEventHandler("onClientMarkerHit",theMarker, function (player) if (getElementType (player) == "player") and (player == localPlayer) and not isPedInVehicle (player) then guiSetVisible(Vehicle,true) showCursor(true) end end ) function Buttons() if source == set then elseif source == close then guiSetVisible(Vehicle,false) showCursor(false) end end addEventHandler ( "onClientGUIClick",root,Buttons) سيرفر set = createVehicle ( 429, -3568.44434, -3001.70483, 45.00222 ) warpPedIntoVehicle ( source, set ) triggerEvent ( "onSpecialEvent", getRootElement(), "set" ) الميتا "Sfa7" version="2" type="script" /> ماادري بس انتو لحستو مخي قلتو شيل الـ set = createVehicle ( 429, -3568.44434, -3001.70483, 45.00222 ) warpPedIntoVehicle ( source, set ) triggerEvent ( "onSpecialEvent", getRootElement(), "set" ) ولما شلتهم مادري وش احط مكانهم >< Link to comment
jafar Posted February 22, 2013 Share Posted February 22, 2013 والله مادري سويت كذاوماضبط احس اني مخربط الدنيا \ GUIEditor_Grid = {} Vehicle = guiCreateWindow(453,218,302,379,"x[ Vehicle Systm ]x",false) guiSetVisible(Vehicle ,false) guiSetAlpha(Vehicle,1) set = guiCreateButton(0.0795,0.8575,0.4007,0.1135,"x[ set ]x",true,Vehicle) close = guiCreateButton(0.5166,0.8602,0.4007,0.1135,"x[ close ]x",true,Vehicle) GUIEditor_Grid[1] = guiCreateGridList(0.106,0.1214,0.7583,0.6887,true,Vehicle) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Vehicle ",0.2) for i = 1, 1 do guiGridListAddRow(GUIEditor_Grid[1]) end guiGridListSetItemText(GUIEditor_Grid[1],0,1,"sultan", false, false) guiSetAlpha(GUIEditor_Grid[1],0.89999997615814) theMarker = createMarker ( -3568.44434, -3001.70483, 45.00222, "cylinder", 2, 0, 255, 0, 255 ) addEventHandler("onClientMarkerHit",theMarker, function (player) if (getElementType (player) == "player") and (player == localPlayer) and not isPedInVehicle (player) then guiSetVisible(Vehicle,true) showCursor(true) end end ) function Buttons() if source == set then triggerServerEvent("set",localPlayer) set = createVehicle ( 429, -3568.44434, -3001.70483, 45.00222 ) warpPedIntoVehicle ( source, set ) elseif source == close then guiSetVisible(Vehicle,false) showCursor(false) end end addEventHandler ( "onClientGUIClick",root,Buttons) سطر 40 و 41 مالهم داعي بالكلينت ولا تنسى تضيفه بالميتا سيرفر server.lua أفتح ملف جديد و حط اسمه و استخدم الكود addEvent addEventHandler و بعدها أنقل الكود الي بالكلينت الي بسطر40 و 41 إلى ملف السيرفر وليه حاذف الترقر Link to comment
Sfa7 Posted February 22, 2013 Author Share Posted February 22, 2013 عاد جا جعفر مسوي فاهم لو انت مسويها بتطرح موضوع لنها فيها اخطا المهم انا اقولك ماصارلي سبوع اتعلم برمجة النوافذ ! طيب اشرحولنا وين نحطها وكذا مو تعطونا الكود وتقول روح سو ؟ Link to comment
jafar Posted February 22, 2013 Share Posted February 22, 2013 عاد جا جعفر مسوي فاهم لو انت مسويها بتطرح موضوع لنها فيها اخطا المهم انا اقولك ماصارلي سبوع اتعلم برمجة النوافذ ! طيب اشرحولنا وين نحطها وكذا مو تعطونا الكود وتقول روح سو ؟ هههه انا مسوي اقتباس لكلام تابل مهب كلامي Link to comment
Sfa7 Posted February 22, 2013 Author Share Posted February 22, 2013 وليه حاذف الترقر وهذا اقتباس من تابل ؟ Link to comment
TAPL Posted February 22, 2013 Share Posted February 22, 2013 أرجع أقرأ ردي مره ثانية أنا قلت لك أستخدم الكودين في ملف السيرفر addEvent addEventHandler بس ما أشوفك أستخدمتهم و ذا الكود ليه حذفته من الكلينت؟ triggerServerEvent("set",localPlayer) و هذا السطر ليه حاطه؟ احذفه ماله داعي triggerEvent ( "onSpecialEvent", getRootElement(), "set" ) Link to comment
jafar Posted February 22, 2013 Share Posted February 22, 2013 وليه حاذف الترقر وهذا اقتباس من تابل ؟ لا لكن من قالك احذف الترقر ؟ الترقر يربط بين الكلنت والسيرفر "-_- Link to comment
Sfa7 Posted February 22, 2013 Author Share Posted February 22, 2013 كلنت GUIEditor_Grid = {} Vehicle = guiCreateWindow(453,218,302,379,"x[ Vehicle Systm ]x",false) guiSetVisible(Vehicle ,false) guiSetAlpha(Vehicle,1) set = guiCreateButton(0.0795,0.8575,0.4007,0.1135,"x[ set ]x",true,Vehicle) close = guiCreateButton(0.5166,0.8602,0.4007,0.1135,"x[ close ]x",true,Vehicle) GUIEditor_Grid[1] = guiCreateGridList(0.106,0.1214,0.7583,0.6887,true,Vehicle) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Vehicle ",0.2) for i = 1, 1 do guiGridListAddRow(GUIEditor_Grid[1]) end guiGridListSetItemText(GUIEditor_Grid[1],0,1,"sultan", false, false) guiSetAlpha(GUIEditor_Grid[1],0.89999997615814) theMarker = createMarker ( -3568.44434, -3001.70483, 45.00222, "cylinder", 2, 0, 255, 0, 255 ) addEventHandler("onClientMarkerHit",theMarker, function (player) if (getElementType (player) == "player") and (player == localPlayer) and not isPedInVehicle (player) then guiSetVisible(Vehicle,true) showCursor(true) end end ) function Buttons() if source == set then triggerServerEvent("set",localPlayer) elseif source == close then guiSetVisible(Vehicle,false) showCursor(false) end end addEventHandler ( "onClientGUIClick",root,Buttons) سيرفر set = createVehicle ( 429, -3568.44434, -3001.70483, 45.00222 ) warpPedIntoVehicle ( source, set ) triggerServerEvent("set",localPlayer) addEventHandler( "onPlayerSpawn", Buttons, set ) احس كله غلط Link to comment
jafar Posted February 22, 2013 Share Posted February 22, 2013 قالك تابل خل ذا بداية ملف سيرفر addEvent addEventHandler خل اسم الافنت نفس اسم الترقر ذذ Link to comment
Sfa7 Posted February 22, 2013 Author Share Posted February 22, 2013 ككذا ؟ triggerServerEvent("set",localPlayer) addEventHandler( "onPlayerSpawn", localPlayer, set ) set = createVehicle ( 429, -3568.44434, -3001.70483, 45.00222 ) warpPedIntoVehicle ( source, set ) Link to comment
jafar Posted February 22, 2013 Share Posted February 22, 2013 قالك تابل خل ذا بداية ملف سيرفر addEvent addEventHandler خل اسم الافنت نفس اسم الترقر ذذ + ليه مرجع الترقر في ملف سيرفر الترقر كلنت اونلي "-_- Link to comment
PaiN^ Posted February 22, 2013 Share Posted February 22, 2013 ككذا ؟ triggerServerEvent("set",localPlayer) addEventHandler( "onPlayerSpawn", localPlayer, set ) set = createVehicle ( 429, -3568.44434, -3001.70483, 45.00222 ) warpPedIntoVehicle ( source, set ) كيف تحط تريقر السيرفر في السيرفر ؟؟ تريقر السيرفر يكون في الكلنت وتريقر الكلنت يكون في السيرفر + أي فنكشن لونه أحمر يعني كلنت بس زي triggerServerEvent وأي فنكشن لونه برتقالي يكون سيرفر بس زي triggerClientEvent Link to comment
TAPL Posted February 22, 2013 Share Posted February 22, 2013 + localPlayer كلينت فقط السيرفر يكون كذا addEvent("set", true) addEventHandler("set", root, function() sett = createVehicle ( 429, -3568.44434, -3001.70483, 45.00222 ) warpPedIntoVehicle ( source, sett ) end) Link to comment
Sfa7 Posted February 22, 2013 Author Share Posted February 22, 2013 سيررفر addEventHandler( "onPlayerSpawn", localPlayer, set ) set = createVehicle ( 429, -3568.44434, -3001.70483, 45.00222 ) warpPedIntoVehicle ( source, set ) كلنت GUIEditor_Grid = {} Vehicle = guiCreateWindow(453,218,302,379,"x[ Vehicle Systm ]x",false) guiSetVisible(Vehicle ,false) guiSetAlpha(Vehicle,1) set = guiCreateButton(0.0795,0.8575,0.4007,0.1135,"x[ set ]x",true,Vehicle) close = guiCreateButton(0.5166,0.8602,0.4007,0.1135,"x[ close ]x",true,Vehicle) GUIEditor_Grid[1] = guiCreateGridList(0.106,0.1214,0.7583,0.6887,true,Vehicle) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Vehicle ",0.2) for i = 1, 1 do guiGridListAddRow(GUIEditor_Grid[1]) end guiGridListSetItemText(GUIEditor_Grid[1],0,1,"sultan", false, false) guiSetAlpha(GUIEditor_Grid[1],0.89999997615814) theMarker = createMarker ( -3568.44434, -3001.70483, 45.00222, "cylinder", 2, 0, 255, 0, 255 ) addEventHandler("onClientMarkerHit",theMarker, function (player) if (getElementType (player) == "player") and (player == localPlayer) and not isPedInVehicle (player) then guiSetVisible(Vehicle,true) showCursor(true) end end ) function Buttons() if source == set then triggerServerEvent("set",localPlayer) elseif source == close then guiSetVisible(Vehicle,false) showCursor(false) end end addEventHandler ( "onClientGUIClick",root,Buttons) صح ولا غلط ؟ Link to comment
jafar Posted February 22, 2013 Share Posted February 22, 2013 قالك تابل خل ذا بداية ملف سيرفر addEvent addEventHandler خل اسم الافنت نفس اسم الترقر ذذ Link to comment
Sfa7 Posted February 22, 2013 Author Share Posted February 22, 2013 الحين خلصت كل شي بس الكلنت الحين فيه شي .؟ GUIEditor_Grid = {} Vehicle = guiCreateWindow(453,218,302,379,"x[ Vehicle Systm ]x",false) guiSetVisible(Vehicle ,false) guiSetAlpha(Vehicle,1) set = guiCreateButton(0.0795,0.8575,0.4007,0.1135,"x[ set ]x",true,Vehicle) close = guiCreateButton(0.5166,0.8602,0.4007,0.1135,"x[ close ]x",true,Vehicle) GUIEditor_Grid[1] = guiCreateGridList(0.106,0.1214,0.7583,0.6887,true,Vehicle) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Vehicle ",0.2) for i = 1, 1 do guiGridListAddRow(GUIEditor_Grid[1]) end guiGridListSetItemText(GUIEditor_Grid[1],0,1,"sultan", false, false) guiSetAlpha(GUIEditor_Grid[1],0.89999997615814) theMarker = createMarker ( -3568.44434, -3001.70483, 45.00222, "cylinder", 2, 0, 255, 0, 255 ) addEventHandler("onClientMarkerHit",theMarker, function (player) if (getElementType (player) == "player") and (player == localPlayer) and not isPedInVehicle (player) then guiSetVisible(Vehicle,true) showCursor(true) end end ) function Buttons() if source == set then triggerServerEvent("set",localPlayer) elseif source == close then guiSetVisible(Vehicle,false) showCursor(false) end end addEventHandler ( "onClientGUIClick",root,Buttons) Link to comment
TAPL Posted February 22, 2013 Share Posted February 22, 2013 مافيه شي بس في الحقيقة أنت ما تستخدم الـ قريد لست يعني وجوده = عدم وجوده Link to comment
PaiN^ Posted February 22, 2013 Share Posted February 22, 2013 ودي أعرف "onPlayerSpawn" !!!وش دخلها ؟؟ Link to comment
jafar Posted February 22, 2013 Share Posted February 22, 2013 ودي أعرف "onPlayerSpawn" !!!وش دخلها ؟؟ خلاص تمت الافادة "-_- 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