Jump to content

abdalbaset

Members
  • Posts

    170
  • Joined

  • Last visited

Everything posted by abdalbaset

  1. how i can creat map TDM map i try to edit one but whene i add it to the server its not working why?
  2. One more thing where I open the panel I can't see the mouse why?
  3. thanx man 10/10 you helped me more by explining that
  4. lal can you tell me what you did?
  5. i cant see it i think i made a mistack over there
  6. so i make it like this to make the gui open ? this code is working can you help me to fix it GUIEditor = { button = {}, window = {} } function() songsgui = guiCreateWindow(495, 299, 522, 358, "songs panel", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(12, 38, 198, 69, "SONG1", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "clear-normal") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFF90522") GUIEditor.button[2] = guiCreateButton(278, 9, 201, 27, "", false, GUIEditor.button[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(3, 126, 162, 16, "", false, GUIEditor.button[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.button[4] = guiCreateButton(330, 42, 176, 65, "SONG2", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF1FF409") GUIEditor.button[5] = guiCreateButton(18, 156, 192, 71, "SONG3", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF0622F6") GUIEditor.button[6] = guiCreateButton(334, 160, 172, 67, "SONG4", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFF803EF") GUIEditor.button[7] = guiCreateButton(23, 290, 197, 58, "stop", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[7], "sa-header") guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFAAAAAA") GUIEditor.button[8] = guiCreateButton(338, 286, 168, 62, "close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[8], "sa-header") guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FFAAAAAA") end ) function songo() guiSetVisible ( GUIEditor.window[1], true ) end bindKey("F7","down",songo)
  7. abdalbaset

    gui panel

    i make this gui panel but i dont know what to use to make whene this panel come out with command and whene player prees any Button song will start GUIEditor = { button = {}, window = {} } function() GUIEditor.window[1] = guiCreateWindow(495, 299, 522, 358, "songs panel", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(12, 38, 198, 69, "SONG1", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "clear-normal") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFF90522") GUIEditor.button[2] = guiCreateButton(278, 9, 201, 27, "", false, GUIEditor.button[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(3, 126, 162, 16, "", false, GUIEditor.button[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.button[4] = guiCreateButton(330, 42, 176, 65, "SONG2", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF1FF409") GUIEditor.button[5] = guiCreateButton(18, 156, 192, 71, "SONG3", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF0622F6") GUIEditor.button[6] = guiCreateButton(334, 160, 172, 67, "SONG4", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFF803EF") GUIEditor.button[7] = guiCreateButton(23, 290, 197, 58, "stop", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[7], "sa-header") guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFAAAAAA") GUIEditor.button[8] = guiCreateButton(338, 286, 168, 62, "close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[8], "sa-header") guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FFAAAAAA") end )
  8. بس انا احمل بس من community
  9. That code doesn't make any sense. Please, stop. So what Im going to do?
  10. شباب بدي اضيف سكربت لقروب الكونسل او الادمن كيف اعملهل عن طريق ال Acl
  11. abdalbaset

    colshop

    I want make when's player hit the colsp ped start shoting him I made it like that but my problem that I don't know what to put in client function Client colsp1=createColSphere ( 2493.623, -1668.179, 13.343, 15 ) addEvent( "onPedControl", true ) addEventHandler( "onPedControl", root, function( ) setPedControlState( source, "fire", true ) end ) function colh(player) ---------what to put here? end addEventHandler("onColShapeHit",colsp1,colh) Server addEventHandler( "onResourceStart", resourceRoot, function( ) local ped = createPed( 191, 2493.623, -1668.179, 13.343, 90 ) setTimer( function( ped ) if ( not isElement( ped ) ) then return end giveWeapon( ped, 27, 9999, true ) triggerClientEvent( root, "onPedControl", ped ) triggerClientEvent( root, "onColShapeHit", ped ) end, 100, 1, ped ) end )
  12. بس ممكن تشرح كيف اضيفه لكونسول او الادمن في ال acl ؟
  13. [/lua] وش اسوي هسا؟
  14. الفنكشن الي في الكلينت الي فوق ما اعرف وش اعمل فيها هشان اخلي البيد يطلق النار على اي لاعب يدخل الكوشيب شوف الشرح في الكلينت
  15. شباب انا اسف اذا كنت مزعج بس ممكن حد يساعدني او اروح المنتدى الاجنبي يساعدوني؟
  16. Client side colsp1=createColSphere ( 2493.623, -1668.179, 13.343, 15 ) addEvent( "onPedControl", true ) addEventHandler( "onPedControl", root, function( ) setPedControlState( source, "fire", true ) end ) function colh(player) -------my problem that idk what to put here to make the ped shooting the player who enter the colshap end addEventHandler("onColShapeHit",colsp1,colh) Server side addEventHandler( "onResourceStart", resourceRoot, function( ) local ped = createPed( 191, 2493.623, -1668.179, 13.343, 90 ) setTimer( function( ped ) if ( not isElement( ped ) ) then return end giveWeapon( ped, 27, 9999, true ) triggerClientEvent( root, "onPedControl", ped ) triggerClientEvent( root, "onColShapeHit", ped ) end, 100, 1, ped ) end )
  17. الله يحيك اخي مشكوؤ هذا الي اقصده
  18. شباب انا شفت البوم مود للمخدرات هنا في القسم العربي بس مش فاكر بضبط وين فاذا حد يعرف ويجيبه يكون مشكورع
  19. حد حيساعدني ولا ما لي الا الله? د
  20. abdalbaset

    sounds

    Thank guys its working and thanks for the wiki
  21. اخي انا جديد على البرمجة لذا صعب شوي اعمل زي ما قلت بس انا فهمت الفكرة فممكن تساعدني في البقاي عملت فنكشين للاعب اذا بيدخل الكول شيب بس مش عارف شو احط فيها (انا اقصد الفنكشن في الكلينت) .وشكرا على الرد كلينت colsp1=createColSphere ( 2493.623, -1668.179, 13.343, 15 ) addEvent( "onPedControl", true ) addEventHandler( "onPedControl", root, function( ) setPedControlState( source, "fire", true ) end ) function colh(player) ---------وش احط هنا عشان البد يصوب على الللعب end addEventHandler("onColShapeHit",colsp1,colh) سيرفر addEventHandler( "onResourceStart", resourceRoot, function( ) local ped = createPed( 191, 2493.623, -1668.179, 13.343, 90 ) setTimer( function( ped ) if ( not isElement( ped ) ) then return end giveWeapon( ped, 27, 9999, true ) triggerClientEvent( root, "onPedControl", ped ) triggerClientEvent( root, "onColShapeHit", ped ) end, 100, 1, ped ) end )
  22. شباب عندي مشكلة في الكود عملته بس لما اشغلة البيد مايصوب على الاعب لذا بدي اعمل كول شيب قرات في الويكيس بس ما استفدت كثير مكن تساعدوني مع الشرح لو سمحتم Server side addEventHandler( "onResourceStart", resourceRoot, function( ) local ped = createPed( 191, 2493.623, -1668.179, 13.343, 90 ) setTimer( function( ped ) if ( not isElement( ped ) ) then return end giveWeapon( ped, 22, 9999, true ) triggerClientEvent( root, "onPedControl", ped ) end, 100, 1, ped ) end ) Client side addEvent( "onPedControl", true ) addEventHandler( "onPedControl", root, function( ) setPedControlState( source, "fire", true ) end )
×
×
  • Create New...