yazan Posted February 17, 2013 Author Share Posted February 17, 2013 GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(1,0,798,599,"ختيار قيم مود",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Image[1] = guiCreateStaticImage(12,43,361,489,"images/mtalogo.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(379,48,406,490,"images/shruk.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(518,31,205,30,"هجولة",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(151,21,193,34,"حرب",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(16,548,244,50,"by yaZan",false,GUIEditor_Window[1]) هذى Link to comment
Mr.T9 Posted February 17, 2013 Share Posted February 17, 2013 تفضل غير الاحداثيات ------ cilent GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(1,0,798,599,"ختيار قيم مود",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Image[1] = guiCreateStaticImage(12,43,361,489,"images/mtalogo.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(379,48,406,490,"images/shruk.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(518,31,205,30,"هجولة",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(151,21,193,34,"حرب",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(16,548,244,50,"by yaZan",false,GUIEditor_Window[1]) function ButtonCLick() if source == GUIEditor_Image[1] then triggerServerEvent("spawn1",getLocalPlayer()) elseif source == GUIEditor_Image[2] then triggerServerEvent("spawn2",getLocalPlayer()) end addEventHandler("onClientGUIClick",root,ButtonCLick,false) ------ server addEvent("spawn1",true) addEventHandler("spawn1",root, function() spawnPlayer(source,x+math.random(-1,1),y+math.random(-1,1),z) end) addEvent("spawn2",true) addEventHandler("spawn2",root, function() spawnPlayer(source,x+math.random(-1,1),y+math.random(-1,1),z) end) Link to comment
yazan Posted February 17, 2013 Author Share Posted February 17, 2013 اخوي شلون اخليه لمن يدخل سيرفر يطلع يعني ان بلي جوين و لمن تكبس تروح فلس Link to comment
Mr.T9 Posted February 17, 2013 Share Posted February 17, 2013 جرب ------ cilent GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(1,0,798,599,"ختيار قيم مود",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Image[1] = guiCreateStaticImage(12,43,361,489,"images/mtalogo.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(379,48,406,490,"images/shruk.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(518,31,205,30,"هجولة",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(151,21,193,34,"حرب",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(16,548,244,50,"by yaZan",false,GUIEditor_Window[1]) function ButtonCLick() if source == GUIEditor_Image[1] then triggerServerEvent("spawn1",getLocalPlayer()) guiSetVisible ( GUIEditor_Window[1] ,false) showCursor (false) guiSetInputEnabled(false) elseif source == GUIEditor_Image[2] then triggerServerEvent("spawn2",getLocalPlayer()) guiSetVisible ( GUIEditor_Window[1] ,false) showCursor (false) guiSetInputEnabled(false) end addEventHandler("onClientGUIClick",root,ButtonCLick,false) ------ server addEvent("spawn1",true) addEventHandler("spawn1",root, function() spawnPlayer(source,x+math.random(-1,1),y+math.random(-1,1),z) end) addEvent("spawn2",true) addEventHandler("spawn2",root, function() spawnPlayer(source,x+math.random(-1,1),y+math.random(-1,1),z) end) Link to comment
PaiN^ Posted February 17, 2013 Share Posted February 17, 2013 إذا كان قصدك أول ما اللاعب يخش تطلعله جرب هذا --> server addEvent("spawn1",true) addEventHandler("spawn1",root, function() spawnPlayer(source,x+math.random(-1,1),y+math.random(-1,1),z) end) addEvent("spawn2",true) addEventHandler("spawn2",root, function() spawnPlayer(source,x+math.random(-1,1),y+math.random(-1,1),z) end) --> Client GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(1,0,798,599,"ختيار قيم مود",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Image[1] = guiCreateStaticImage(12,43,361,489,"images/mtalogo.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(379,48,406,490,"images/shruk.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(518,31,205,30,"هجولة",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(151,21,193,34,"حرب",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(16,548,244,50,"by yaZan",false,GUIEditor_Window[1]) addEventHandler("onClientPlayerJoin", root, function () guiSetVisible ( GUIEditor_Window[1] ,true) showCursor (true) end ) function ButtonCLick() if source == GUIEditor_Image[1] then triggerServerEvent("spawn1",getLocalPlayer()) guiSetVisible ( GUIEditor_Window[1] ,false) showCursor (false) elseif source == GUIEditor_Image[2] then triggerServerEvent("spawn2",getLocalPlayer()) guiSetVisible ( GUIEditor_Window[1] ,false) showCursor (false) end end addEventHandler("onClientGUIClick",root,ButtonCLick,false) Link to comment
][sojn][ Posted February 17, 2013 Share Posted February 17, 2013 مثلا هو اختار بيسمود ومات يرجع للسباون حق البيسمود ولا ؟؟؟؟؟؟؟؟ للسباون حق السيرفر؟؟ Link to comment
Mr.T9 Posted February 17, 2013 Share Posted February 17, 2013 إذا كان قصدك أول ما اللاعب يخش تطلعله جرب هذا --> server addEvent("spawn1",true) addEventHandler("spawn1",root, function() spawnPlayer(source,x+math.random(-1,1),y+math.random(-1,1),z) end) addEvent("spawn2",true) addEventHandler("spawn2",root, function() spawnPlayer(source,x+math.random(-1,1),y+math.random(-1,1),z) end) --> Client GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(1,0,798,599,"ختيار قيم مود",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Image[1] = guiCreateStaticImage(12,43,361,489,"images/mtalogo.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(379,48,406,490,"images/shruk.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(518,31,205,30,"هجولة",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(151,21,193,34,"حرب",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(16,548,244,50,"by yaZan",false,GUIEditor_Window[1]) addEventHandler("onClientPlayerJoin", root, function () guiSetVisible ( GUIEditor_Window[1] ,true) showCursor (true) end ) function ButtonCLick() if source == GUIEditor_Image[1] then triggerServerEvent("spawn1",getLocalPlayer()) guiSetVisible ( GUIEditor_Window[1] ,false) showCursor (false) elseif source == GUIEditor_Image[2] then triggerServerEvent("spawn2",getLocalPlayer()) guiSetVisible ( GUIEditor_Window[1] ,false) showCursor (false) end end addEventHandler("onClientGUIClick",root,ButtonCLick,false) ماشوفك سويت شي !! بس ضفت حق الدخول Link to comment
yazan Posted February 17, 2013 Author Share Posted February 17, 2013 الكود مو شغال انا قصدي فكره كامله لو واحد دخل سيرفر يطلع ختيار قيم مود حرب و هجولة لمن يموت يرجع مثل ما كان و لو وده يغير القيم مود يكبس حرف خ ترجع له قائمة حق الختيار Link to comment
Mr.T9 Posted February 17, 2013 Share Posted February 17, 2013 الكود مو شغال انا قصدي فكره كامله لو واحد دخل سيرفر يطلع ختيار قيم مود حرب و هجولة لمن يموت يرجع مثل ما كان و لو وده يغير القيم مود يكبس حرف خ ترجع له قائمة حق الختيار الزبدة تبي نسوي لك المود كله Link to comment
PaiN^ Posted February 17, 2013 Share Posted February 17, 2013 جرب ------ cilent GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(1,0,798,599,"ختيار قيم مود",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Image[1] = guiCreateStaticImage(12,43,361,489,"images/mtalogo.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(379,48,406,490,"images/shruk.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(518,31,205,30,"هجولة",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(151,21,193,34,"حرب",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(16,548,244,50,"by yaZan",false,GUIEditor_Window[1]) function ButtonCLick() if source == GUIEditor_Image[1] then triggerServerEvent("spawn1",getLocalPlayer()) guiSetVisible ( GUIEditor_Window[1] ,false) showCursor (false) guiSetInputEnabled(false) elseif source == GUIEditor_Image[2] then triggerServerEvent("spawn2",getLocalPlayer()) guiSetVisible ( GUIEditor_Window[1] ,false) showCursor (false) guiSetInputEnabled(false) end addEventHandler("onClientGUIClick",root,ButtonCLick,false) ------ server addEvent("spawn1",true) addEventHandler("spawn1",root, function() spawnPlayer(source,x+math.random(-1,1),y+math.random(-1,1),z) end) addEvent("spawn2",true) addEventHandler("spawn2",root, function() spawnPlayer(source,x+math.random(-1,1),y+math.random(-1,1),z) end) عندك إند ناقص + فنكشن ماله لزمة guiSetPutEnabled + مسوي فنكشنين زي بعض بالضبط في السيرفر بس الإسمـ يختلف + أنا تعديلي أصلا فيه أغلاط ذذ Link to comment
Mr.T9 Posted February 17, 2013 Share Posted February 17, 2013 بخصوص إذا مات يرجع جرب function respawn (player) spawnPlayer(player,z+math.random(-1,1), y+math.random(-1,1), x) setCameraTarget(player, player) end end Link to comment
PaiN^ Posted February 17, 2013 Share Posted February 17, 2013 بخصوص إذا مات يرجع جرب function respawn (player) spawnPlayer(player,z+math.random(-1,1), y+math.random(-1,1), x) setCameraTarget(player, player) end end يجرب على كود خربان أصلا Link to comment
Mr.T9 Posted February 17, 2013 Share Posted February 17, 2013 بخصوص إذا مات يرجع جرب function respawn (player) spawnPlayer(player,z+math.random(-1,1), y+math.random(-1,1), x) setCameraTarget(player, player) end end يجرب على كود خربان أصلا !!! ؟؟؟ وش قصتك الحين انت ؟ Link to comment
yazan Posted February 17, 2013 Author Share Posted February 17, 2013 طيب ممكن الكود كامل لو فيه تعب Link to comment
Mr.T9 Posted February 17, 2013 Share Posted February 17, 2013 طيب ممكن الكود كامل لو فيه تعب الكود كامل = المود كامل المهم إذا تبغى تفتح بزر bindKey Link to comment
yazan Posted February 17, 2013 Author Share Posted February 17, 2013 طيب انتم الحين لخبطوني مستر ام حط كود و انت كود كل واحد طرح كود و انا مو عارف اي واحد Link to comment
Mr.T9 Posted February 17, 2013 Share Posted February 17, 2013 بخصوص إذا مات يرجع جرب function respawn (player) spawnPlayer(player,z+math.random(-1,1), y+math.random(-1,1), x) setCameraTarget(player, player) end end من اللخبطه لخبطت ام الكود ^^^^^ XXXX Link to comment
Mr.T9 Posted February 17, 2013 Share Posted February 17, 2013 طيب انتم الحين لخبطوني مستر ام حط كود و انت كود كل واحد طرح كود و انا مو عارف اي واحد خذ اللي يعجبك Link to comment
yazan Posted February 17, 2013 Author Share Posted February 17, 2013 يسير كذا addEvent("spawn1",true) addEventHandler("spawn1",root, function respawn (player) spawnPlayer(player,z+math.random(-1,1), y+math.random(-1,1), x) setCameraTarget(player, player) end addEvent("spawn2",true) addEventHandler("spawn2",root, function() spawnPlayer(player,z+math.random(-1,1), y+math.random(-1,1), x) setCameraTarget(player, player) end end Link to comment
Mr.T9 Posted February 17, 2013 Share Posted February 17, 2013 يسير كذا addEvent("spawn1",true) addEventHandler("spawn1",root, function respawn (player) spawnPlayer(player,z+math.random(-1,1), y+math.random(-1,1), x) setCameraTarget(player, player) end addEvent("spawn2",true) addEventHandler("spawn2",root, function() spawnPlayer(player,z+math.random(-1,1), y+math.random(-1,1), x) setCameraTarget(player, player) end end لا Link to comment
Mr.T9 Posted February 17, 2013 Share Posted February 17, 2013 على فكرة الكود الاخير اللي انا حطيته خطا بس متلخبط والله Link to comment
yazan Posted February 17, 2013 Author Share Posted February 17, 2013 طيب اخوي قسم الموضع صار عجقه و مو فاهم شي يا ريت يلي يبي يسعديطرح كود صح Link to comment
PaiN^ Posted February 17, 2013 Share Posted February 17, 2013 أعتقد يسير كذا --> server addEvent("spawn1",true) addEventHandler("spawn1", root, function spawn1 () spawnPlayer(source,x ,y ,z) end ) addEvent("spawn2",true) addEventHandler("spawn2", root, function spawn2 () spawnPlayer(source,x ,y ,z) end ) addEventHandler("onPlayerWasted", root, function (attacker,weapon) if (getElementType(attacker) == "player") then if (getElementType(weapon) == "weapon") then spawnPlayer(source, x, y, z) -- هنا بدل بإحداثيات الحرب else spawnPlayer(source, x, y, z) -- هنا بدل بإحداثيات الهجولة end end end ) --> client key = "حط الزر" GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(1,0,798,599,"ختيار قيم مود",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Image[1] = guiCreateStaticImage(12,43,361,489,"images/mtalogo.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(379,48,406,490,"images/shruk.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(518,31,205,30,"هجولة",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(151,21,193,34,"حرب",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(16,548,244,50,"by yaZan",false,GUIEditor_Window[1]) function openWin () if guiGetVisible (GUIEditor_Window[1]) then guiSetVisible (GUIEditor_Window[1], false) showCursor(false) else guiSetVisible (GUIEditor_Window[1], true) showCursor(true) end end bindKey(key, "down", openWin) addEventHandler("onClientPlayerJoin", root, function () guiSetVisible ( GUIEditor_Window[1] ,true) showCursor (true) end ) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor_Image[1] then triggerServerEvent("spawn1",getLocalPlayer()) guiSetVisible ( GUIEditor_Window[1] ,false) showCursor (false) elseif source == GUIEditor_Image[2] then triggerServerEvent("spawn2",getLocalPlayer()) guiSetVisible ( GUIEditor_Window[1] ,false) showCursor (false) end end ) جربه وقولي Link to comment
Mr.T9 Posted February 17, 2013 Share Posted February 17, 2013 إذا تبغى يرجع يلعب onPlayerWasted Link to comment
Mr.T9 Posted February 17, 2013 Share Posted February 17, 2013 (edited) Edited April 13, 2013 by Guest 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