[KilleR] Posted July 8, 2016 Share Posted July 8, 2016 السلام عليكم ورحمة الله وبركاتة اول شي كل عام وانتم بخير - وصحه وسلاممه كذا الكود يصير نافع؟ getPlayerPing(localPlayer) او لا Link to comment
Ahmed Ly Posted July 8, 2016 Share Posted July 8, 2016 صح + شوف هدا مثال function ping () outputChatBox("you ping is "..getPlayerPing(localPlayer).."",0,255,0) end addCommandHandler("1",ping) Link to comment
[KilleR] Posted July 8, 2016 Author Share Posted July 8, 2016 اقدر اظبطه بلوحه يجيب بنقه وفبسه ؟ Link to comment
Ahmed Ly Posted July 8, 2016 Share Posted July 8, 2016 اقدر اظبطه بلوحه يجيب بنقه وفبسه ؟ يب Link to comment
[KilleR] Posted July 8, 2016 Author Share Posted July 8, 2016 سويتها لاكن ماظبطت ماتفتح اللوحه Link to comment
Ahmed Ly Posted July 8, 2016 Share Posted July 8, 2016 سويتها لاكن ماظبطت ماتفتح اللوحه ورني كودك Link to comment
[KilleR] Posted July 8, 2016 Author Share Posted July 8, 2016 function open () if guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1], false) showCursor(false) guiSetInputEnabled(false) else guiSetVisible(GUIEditor.window[1], true) showCursor(true) guiSetInputEnabled(true) end end bindKey("F2", "down",open) function ping () if ( source == GUIEditor.button[1] ) then outputChatBox("بنقك الان هو : "..getPlayerPing(localPlayer).."",0,255,0) end function Serial () if ( source == GUIEditor.button[2] ) then outputChatBox("سيريالك هو : "..getPlayerSerial(LocalPlayer).."",0,255,0) end function Name () if ( source == GUIEditor.button[2] ) then outputChatBox("اسمك الحالي هو : "..getPlayerName(localPlayer).."",0,255,0) end Link to comment
Ahmed Ly Posted July 8, 2016 Share Posted July 8, 2016 addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then outputChatBox("بنقك الان هو : "..getPlayerPing(localPlayer).."",0,255,0) elseif source == GUIEditor.button[2] then outputChatBox("اسمك الحالي هو : "..getPlayerName(localPlayer).."",0,255,0) end end ) function open () if guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1], false) showCursor(false) guiSetInputEnabled(false) else guiSetVisible(GUIEditor.window[1], true) showCursor(true) guiSetInputEnabled(true) end end bindKey("F2", "down",open) Link to comment
[KilleR] Posted July 8, 2016 Author Share Posted July 8, 2016 ياخوي احمد ليي - انا مسوي سيريال بوتون رقم 1 = بنق بوتون رقم 2 = سيريال بوتون رقم 3 = الاسم Link to comment
' A F . Posted July 8, 2016 Share Posted July 8, 2016 addEventHandler("onClientGUIClick",root, function ( ) if ( source == GUIEditor.button [ 1 ] ) then outputChatBox("Your Ping is : "..getPlayerPing(localPlayer),255,255,255,true) elseif ( source == GUIEditor.button [ 3 ] ) then outputChatBox("Your Ping is : "..getPlayerName(localPlayer),255,255,255,true) end end ) عشان تجيب سيريال اللاعب سوي triggerServerEvent Link to comment
Ahmed Ly Posted July 8, 2016 Share Posted July 8, 2016 ---Client addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then outputChatBox("بنقك الان هو : "..getPlayerPing(localPlayer).."",0,255,0) elseif source == GUIEditor.button[3] then outputChatBox("اسمك الحالي هو : "..getPlayerName(localPlayer).."",0,255,0) elseif source == GUIEditor.button[2] then triggerServerEvent("Serial",localPlayer) end end ) function open () if guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1], false) showCursor(false) guiSetInputEnabled(false) else guiSetVisible(GUIEditor.window[1], true) showCursor(true) guiSetInputEnabled(true) end end bindKey("F2", "down",open) ---- ---Server addEvent("Serial",true) addEventHandler("Serial",root, function () outputChatBox("you Serial is "..getPlayerSerial(source).."",source,0,255,0) end ) Link to comment
[KilleR] Posted July 8, 2016 Author Share Posted July 8, 2016 مشكورين يا اخوي دفلوت ميحتاج كود ظبط بس كنت ودي اسويه لحالي بس يالله جبت نص الكود Link to comment
' A F . Posted July 8, 2016 Share Posted July 8, 2016 مشكورين يا اخوي دفلوت ميحتاج كود ظبطبس كنت ودي اسويه لحالي بس يالله جبت نص الكود العفو حياك الله . Link to comment
Kara Posted July 9, 2016 Share Posted July 9, 2016 addEventHandler("onClientRender", getRootElement(), function () if guiGetVisible(اسم لوحتك,true) then guiSetText(اسم اليبل,"your ping: "..getPlayerPing(getLocalPlayer())) end end) 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