Jump to content

Rockyz

Members
  • Posts

    1,862
  • Joined

  • Days Won

    8

Everything posted by Rockyz

  1. Delete This Too : https://community.multitheftauto.com/index.php?p=resources&s=details&id=14678
  2. https://community.multitheftauto.com/index.php?p=resources&s=details&id=14677 Delete DONE
  3. اوه صح مانتبهت نسخت الكود من عنده ولا عدلت خخخ نسيت تقولي اغير سطر 19 التعريف الكود يصير كذا : -- #Client Side : gridList = grid -- اسم القريد ليست حقك buttonz = btn -- اسم الزر حقك addEventHandler ( 'onClientResourceStart', resourceRoot, function ( ) Refresh ( ) end ) function Refresh ( ) guiGridListClear ( gridList ) for i, v in ipairs ( getElementsByType ( 'player' ) ) do local Row = guiGridListAddRow ( gridList ) guiGridListSetItemText ( gridList, Row, 1, tostring ( getPlayerName ( v ) ), false, false ) guiGridListSetItemColor ( gridList, Row, 1, 0, 255, 0 ) end end addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == buttonz ) then local sel = guiGridListGetSelectedItem ( gridList ) if ( sel ~= -1 ) then local text = guiGridListGetItemText ( gridList, sel, 1 ) guiSetEnabled ( buttonz, false ) setTimer ( guiSetEnabled, 1000, 1, buttonz, true ) triggerServerEvent ( "killPlayer", getPlayerFromName ( text ), localPlayer ) else outputChatBox ( "Please Choose Player To Kill it", 255, 0, 0, true ) end end end ) -- #Server Side : addEvent ( "killPlayer", true ) addEventHandler ( "killPlayer", root, function ( plrkilled ) outputChatBox ( 'The Player ' .. getPlayerName ( plrkilled ) .. ' Has Killed You', 255, 0, 0, true ) killPed ( source ) end )
  4. مثال : addEventHandler ( 'onClientGUIClick', root, function ( ) if ( source == button ) then outputChatBox ( 'Congs you Pressed The Button', 0, 255, 0, true ) end end )
  5. text = التعريف بالنسبة الى اكوادك تصير كذا : -- #Client Side : gridList = grid -- اسم القريد ليست حقك buttonz = btn -- اسم الزر حقك addEventHandler ( 'onClientResourceStart', resourceRoot, function ( ) Refresh ( ) end ) function Refresh ( ) guiGridListClear ( gridList ) for i, v in ipairs ( getElementsByType ( 'player' ) ) do local Row = guiGridListAddRow ( gridList ) guiGridListSetItemText ( gridList, Row, 1, tostring ( getPlayerName ( v ) ), false, false ) guiGridListSetItemColor ( gridList, Row, 1, 0, 255, 0 ) end end addEventHandler ( "onClientGUIClick", root, function ( ) elseif ( source == btn ) then local sel = guiGridListGetSelectedItem ( gridList ) if ( sel ~= -1 ) then local text = guiGridListGetItemText ( gridList, sel, 1 ) guiSetEnabled ( btn, false ) setTimer ( guiSetEnabled, 1000, 1, btn, true ) triggerServerEvent ( "killPlayer", getPlayerFromName ( text ), localPlayer ) else outputChatBox ( "Please Choose Player To Kill it", 255, 0, 0, true ) end end ) -- #Server Side : addEvent ( "killPlayer", true ) addEventHandler ( "killPlayer", root, function ( plrkilled ) outputChatBox ( 'The Player ' .. getPlayerName ( plrkilled ) .. ' Has Killed You', 255, 0, 0, true ) killPed ( source ) end )
  6. ^ local text = guiGridListGetItemText(grid,sel,1) triggerServerEvent("killPlayer",localPlayer,text)
  7. وش تخربط انت ؟
  8. getTickCount interpolateBetween
  9. لا انت بس عدل عليها كانها لوحة كانك تشتغل عليها من قبل
  10. اول شي افتح الوحة وشغل الجوي اديتور واضغط كلك يمين ع الوحة وسو load gui شي زي كذا نسيت المهم وعدل ع الوحة
  11. كأنك تستخرج لوحة جديدة من الجوي اديتور output
  12. setPlayerHudComponentVisible
  13. xxxx 'onMarkerHit' getResourceFromName stopResource startResource
  14. انا عطيته طريقة بس هو اذا يبي يستخدمها بكيفه
  15. ^ addEvent ( "ree", true ) addEventHandler ( "ree", root,function ( ) redirectPlayer ( source, '46.105.250.205', 25011 ); end );
  16. ^ function setSerialData(serial,key,value) if( value and type(serial) == "string") then setElementData(root,serial.."&"..key,value) end end function getSerialData(serial,key) if ( key and type(serial) == "string") then value = getElementData(root,serial.."&"..key) end return value end
  17. انت موفاهمني وين فنكشن LVL1F في الاكواد
×
×
  • Create New...