Alnassre Posted March 5, 2013 Share Posted March 5, 2013 شباب انا سويت Gui صورتين ابي إذا احد كبس على الصورة يصير في فريق معين + سكين معين+مكان معين+اسلحة معينة ض1 Link to comment
iPrestege Posted March 5, 2013 Share Posted March 5, 2013 onClientGUIClick triggerServerEvent addEvent addEventHandler createTeam setPlayerTeam spawnPlayer giveWeapon setElementModel Link to comment
Alnassre Posted March 5, 2013 Author Share Posted March 5, 2013 triggerServerEvent addEvent addEventHandler كيف استعملهم؟ Link to comment
iPrestege Posted March 5, 2013 Share Posted March 5, 2013 -- client triggerServerEvent("onCallServer",localPlayer) -- server addEvent("onCallServer",true) addEventHandler("onCallServer",root, function () --- end) Link to comment
#Al-Ha[J]aRii Posted March 5, 2013 Share Posted March 5, 2013 (edited) triggerServerEvent addEvent addEventHandler كيف استعملهم؟ Server Side ! Team = createTeam ("Team Name",255,0,0) addEvent("spawn",true) addEventHandler("spawn",root, function () setPlayerTeam(source,Team) spawnPlayer ( thePlayer, x, y, z, skinID ) giveWeapon ( source, ID, AMMO ) setElementModel ( Team, spawnPlayer ) end) الاستبدال x y z الاحداثيات سطر11 skinID رقم الشخصية سطر 13 AMMO الدخيرة جم تبيها ID السلاح الايد ماله Client Side ! triggerServerEvent ( "spawn", localPlayer ) Edited March 5, 2013 by Guest Link to comment
iPrestege Posted March 5, 2013 Share Posted March 5, 2013 triggerServerEvent addEvent addEventHandler كيف استعملهم؟ Server Side ! Team = createTeam ("Team Name",255,0,0) addEvent("spawn",true) addEventHandler("spawn",root, function () setPlayerTeam(source,Team) spawnPlayer ( thePlayer, x, y, z, skinID ) giveWeapon ( source, ID, AMMO ) setElementModel ( Team, spawnPlayer ) end) الاستبدال x y z الاحداثيات سطر11 skinID رقم الشخصية سطر 13 AMMO الدخيرة جم تبيها ID السلاح الايد ماله Client Side ! triggerServerEvent ( "spawn", localPlayer ) Team = createTeam ("Team Name",255,0,0) addEvent("spawn",true) addEventHandler("spawn",root, function () setPlayerTeam(source,Team) spawnPlayer ( source, x, y, z, skinID ) giveWeapon ( source, ID, AMMO,true ) end ) Client : addEventHandler("onClientGUIClick",Button, function () triggerServerEvent("spawn",localPlayer) end,false) Link to comment
#Al-Ha[J]aRii Posted March 5, 2013 Share Posted March 5, 2013 triggerServerEvent addEvent addEventHandler كيف استعملهم؟ Server Side ! Team = createTeam ("Team Name",255,0,0) addEvent("spawn",true) addEventHandler("spawn",root, function () setPlayerTeam(source,Team) spawnPlayer ( thePlayer, x, y, z, skinID ) giveWeapon ( source, ID, AMMO ) setElementModel ( Team, spawnPlayer ) end) الاستبدال x y z الاحداثيات سطر11 skinID رقم الشخصية سطر 13 AMMO الدخيرة جم تبيها ID السلاح الايد ماله Client Side ! triggerServerEvent ( "spawn", localPlayer ) Team = createTeam ("Team Name",255,0,0) addEvent("spawn",true) addEventHandler("spawn",root, function () setPlayerTeam(source,Team) spawnPlayer ( source, x, y, z, skinID ) giveWeapon ( source, ID, AMMO,true ) end ) Client : addEventHandler("onClientGUIClick,Button, function () triggerServerEvent("spawn",localPlayer) end,false) thanx I forget Link to comment
TAPL Posted March 5, 2013 Share Posted March 5, 2013 bool spawnPlayer ( player thePlayer, float x, float y, float z, [ int rotation = 0, int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil ] ) Link to comment
iPrestege Posted March 5, 2013 Share Posted March 5, 2013 Team = createTeam ("Team Name",255,0,0) addEvent("spawn",true) addEventHandler("spawn",root, function () spawnPlayer ( source, x,y,z, 0, skinID, 0, 0, getTeamFromName ( "Team Name" ) ) giveWeapon ( source, ID, AMMO,true ) end ) Link to comment
Alnassre Posted March 5, 2013 Author Share Posted March 5, 2013 server side addEventHandler("onClientGUIClick",GUIEditor_Image[1], function () triggerServerEvent("spawn",localPlayer) end,false) addEventHandler("onClientGUIClick",GUIEditor_Image[2], function () triggerServerEvent("spawn",localPlayer) end,false) client side bindKey(F2,down,true) GUIEditor_Image = {} GUIEditor_Image[1] = guiCreateStaticImage(645,315,228,184,"images/etlf.png",false) GUIEditor_Image[2] = guiCreateStaticImage(263,312,219,175,"images/BH-cop.png",false) -- Direct X Drawing addEventHandler("onClientRender",root, function() dxDrawText("اضغط لأختيار فريق",380.0,237.0,751.0,305.0,tocolor(255,255,255,255),4.0,"default","left","top",false,false,false) end ) addEventHandler("onClientGUIClick",GUIEditor_Image[1], function () triggerServerEvent("spawn",localPlayer) end,false) addEventHandler("onClientGUIClick",GUIEditor_Image[2], function () triggerServerEvent("spawn",localPlayer) end,false) وش الخطاء ض1 Link to comment
iPrestege Posted March 5, 2013 Share Posted March 5, 2013 onClientGUIClick -- Server --?? Lol? Link to comment
TAPL Posted March 5, 2013 Share Posted March 5, 2013 كل الأكواد الي فوق بالأخير كأنك يبو زيد ما غزيت Link to comment
iPrestege Posted March 5, 2013 Share Posted March 5, 2013 كل الأكواد الي فوقبالأخير كأنك يبو زيد ما غزيت Link to comment
jafar Posted March 5, 2013 Share Posted March 5, 2013 server side addEventHandler("onClientGUIClick",GUIEditor_Image[1], function () triggerServerEvent("spawn",localPlayer) end,false) addEventHandler("onClientGUIClick",GUIEditor_Image[2], function () triggerServerEvent("spawn",localPlayer) end,false) client side bindKey(F2,down,true) GUIEditor_Image = {} GUIEditor_Image[1] = guiCreateStaticImage(645,315,228,184,"images/etlf.png",false) GUIEditor_Image[2] = guiCreateStaticImage(263,312,219,175,"images/BH-cop.png",false) -- Direct X Drawing addEventHandler("onClientRender",root, function() dxDrawText("اضغط لأختيار فريق",380.0,237.0,751.0,305.0,tocolor(255,255,255,255),4.0,"default","left","top",false,false,false) end ) addEventHandler("onClientGUIClick",GUIEditor_Image[1], function () triggerServerEvent("spawn",localPlayer) end,false) addEventHandler("onClientGUIClick",GUIEditor_Image[2], function () triggerServerEvent("spawn",localPlayer) end,false) وش الخطاء ض1 الكود مخبوص Link to comment
jafar Posted March 5, 2013 Share Posted March 5, 2013 كل الأكواد الي فوقبالأخير كأنك يبو زيد ما غزيت Link to comment
Alnassre Posted March 5, 2013 Author Share Posted March 5, 2013 ادري هههههههه طبعاً صورتي الشخصية تبين الحالة ض1 Link to comment
TAPL Posted March 5, 2013 Share Posted March 5, 2013 طيب كيف اخليه ض1 جربت تفتح الويكي من قبل؟ bindKey(F2,down,true) bindKey ( string key, string keyState, function handlerFunction, [ var arguments, ... ] ) Link to comment
Alnassre Posted March 5, 2013 Author Share Posted March 5, 2013 جربت بس خربطني تخربط من جدي طلعت حتى لو الشغلة سهلة يجي لك يخربط ض1 من ماسعة للحين في الويكي و ادري انه البيند مو نافع ض1 Link to comment
jafar Posted March 5, 2013 Share Posted March 5, 2013 bindKey ( "F2" , "down" , function() --الوظيفة end ) Link to comment
Alnassre Posted March 5, 2013 Author Share Posted March 5, 2013 انا كنت باخد طريقة السباون من مود ثاني وبخلي بدل الزر الصورة وخلاص على قولت الحجي بلصقه بصمغ بس ابيه يطلع عدل حتى لو بسوبر قلو ض1 Link to comment
Alnassre Posted March 5, 2013 Author Share Posted March 5, 2013 اممم يعني انا الحين كودي كله كلنت؟ ض1 Link to comment
jafar Posted March 5, 2013 Share Posted March 5, 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