Jump to content

Adham

Members
  • Posts

    2,259
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Adham

  1. مثال اخ عبد الكريم عمله Cars = { {'Monster',9000,580}, {'Frary',10000,570}, -- Text , Money , IDcar -- } for i , v in ipairs ( Cars ) do Row = guiGridListAddRow ( grid ) guiGridListSetItemText( grid,Row ,1,v[1],false,false); guiGridListSetItemText( grid,Row ,2,v[2],false,false); guiGridListSetItemData ( grid , Row , 1 , v[3] ) end addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == btn then local Se = guiGridListGetSelectedItem( grid ) if Se and Se ~= -1 then local Money = guiGridListGetItemText ( grid, Se, 2 ) local iD = guiGridListGetItemData ( grid , Se , 1 ) triggerServerEvent ( "GiveVehicle",localPlayer , Money , iD ) end end end ) ; local table = { } addEvent("GiveVehicle" ,true) addEventHandler("GiveVehicle" ,root, function ( Money , id ) if isElement( table[ source ] ) then destroyElement ( table[ source] ) end local Money_ = getPlayerMoney ( source ) if Money_ >= tonumber ( Money ) then PosX , PosY , PosZ = getElementPosition ( source ) takePlayerMoney( source , tonumber ( Money ) ) table[ source ] = createVehicle( id , PosX , PosY , PosZ ) outputChatBox("* تم شراء الشخصيه",source ,0,255,0,false) else outputChatBox("* ليس لديك المال الكافي للشراء",source ,255,0,0,false) end end ) ;
  2. مثال اخ عبد الكريم عمله Cars = { {'Monster',9000,580}, {'Frary',10000,570}, -- Text , Money , IDcar -- } for i , v in ipairs ( Cars ) do Row = guiGridListAddRow ( grid ) guiGridListSetItemText( grid,Row ,1,v[1],false,false); guiGridListSetItemText( grid,Row ,2,v[2],false,false); guiGridListSetItemData ( grid , Row , 1 , v[3] ) end addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == btn then local Se = guiGridListGetSelectedItem( grid ) if Se and Se ~= -1 then local Money = guiGridListGetItemText ( grid, Se, 2 ) local iD = guiGridListGetItemData ( grid , Se , 1 ) triggerServerEvent ( "GiveVehicle",localPlayer , Money , iD ) end end end ) ; local table = { } addEvent("GiveVehicle" ,true) addEventHandler("GiveVehicle" ,root, function ( Money , id ) if isElement( table[ source ] ) then destroyElement ( table[ source] ) end local Money_ = getPlayerMoney ( source ) if Money_ >= tonumber ( Money ) then PosX , PosY , PosZ = getElementPosition ( source ) takePlayerMoney( source , tonumber ( Money ) ) table[ source ] = createVehicle( id , PosX , PosY , PosZ ) outputChatBox("* تم شراء الشخصيه",source ,0,255,0,false) else outputChatBox("* ليس لديك المال الكافي للشراء",source ,255,0,0,false) end end ) ;
  3. addEventHandler("onClientGUIClick",root,function() if source == GUIEditor.button[1] then if isPedInVehicle ( localPlayer ) then destroyElement ( getPedOccupiedVehicle(localPlayer) ) end end end )
  4. addEventHandler("onClientGUIClick",root,function() if source == GUIEditor.button[1] then if isPedInVehicle ( localPlayer ) then destroyElement ( getPedOccupiedVehicle(localPlayer) ) end end end )
  5. createVehicle تسوي سياره -- warpPedIntoVehicle تنقلو للسياره
  6. createVehicle تسوي سياره -- warpPedIntoVehicle تنقلو للسياره
  7. او فيه طريفه تانيه للسحب "onClientGUIClick" sPedInVehicle triggerServerEvent destroyElement getPedOccupiedVehicle outputChatBox وممكن تستمعل في الشات -- واكيد راح تسوي في اول سرفر addEvent addEventHandler
  8. او فيه طريفه تانيه للسحب "onClientGUIClick" sPedInVehicle triggerServerEvent destroyElement getPedOccupiedVehicle outputChatBox وممكن تستمعل في الشات -- واكيد راح تسوي في اول سرفر addEvent addEventHandler
  9. سحب السياره addEventHandler("onClientGUIClick",root,function() if source == GUIEditor.button[1] then if isPedInVehicle ( localPlayer ) then destroyElement ( getPedOccupiedVehicle(localPlayer) ) end end end )
  10. سحب السياره addEventHandler("onClientGUIClick",root,function() if source == GUIEditor.button[1] then if isPedInVehicle ( localPlayer ) then destroyElement ( getPedOccupiedVehicle(localPlayer) ) end end end )
  11. عفوا حياك االله/
  12. عفوا حياك االله/
  13. Adham

    #تعديل

    ما ظبت برده
  14. Adham

    #تعديل

    ما ظبت برده
  15. غلط. تخش علي الاسل Manage Acl ثم ACL: ثم Default وتضعط عليها جامد ثم add Right بعدين تكتب funtcion.addAccount انا جربتها واشتغلت مع كلام DTC12 .
  16. غلط. تخش علي الاسل Manage Acl ثم ACL: ثم Default وتضعط عليها جامد ثم add Right بعدين تكتب funtcion.addAccount انا جربتها واشتغلت مع كلام DTC12 .
  17. Adham

    #تعديل

    http://www.m5zn.com/d/?16267497
  18. Adham

    #تعديل

    http://www.m5zn.com/d/?16267497
  19. Adham

    #تعديل

    - "[L]e3bA" name="UnKnown" version="1.0.0" type="s.s" />
  20. Adham

    #تعديل

    - "[L]e3bA" name="UnKnown" version="1.0.0" type="s.s" />
  21. اتمني توضح اكتر .
  22. اتمني توضح اكتر .
  23. Adham

    #تعديل

    addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == GUIEditor.button[1] then isClear = guiGetText( GUIEditor.edit[1] ) if isClear == "clr" then triggerServerEvent("Send_",localPlayer) end end end ) ;
×
×
  • Create New...