Jump to content

PaiN^

Members
  • Posts

    2,258
  • Joined

  • Last visited

Everything posted by PaiN^

  1. zone = createColSphere ( 1588.1999511719, -1638.5, 15.10000038147, 15.0 ) function shapeHit ( ) setElementPosition ( thePlayer, 1569, -1690, 6 ) end addEventHandler ( 'onColShapeHit', zone, shapeHit )
  2. PaiN^

    Online GUI-Editor

    I can't wait to see it I'm sure it's gona be great, Good luck jaysds1
  3. بسمـ الله الرحمن الرحيمـ وظيفة guiGridListGetSelectedItemText الحصول على نص الغرض المختار من أي جريد لست string guiGridListGetSelectedItemText ( element gridList [, int column ] ) يعني نص وهو نص الغرض المختار في لوحة القريد لست المحددة string الوظيفة ترجع لك false أما إذا كان نص الغرض المحدد فاضي فترجعلك الكود function guiGridListGetSelectedItemText ( gridList, column ) local item = guiGridListGetSelectedItem ( gridList ) local text = guiGridListGetItemText ( gridList, item, column or 1 ) if ( text ~= '' ) then return text else return false end end column مثال بدون إستخدام الـ wnd = guiCreateWindow ( X, Y, Width, Height, 'Example', false, false ) -- لعمل نافذة gridList = guiCreateGridList ( X, Y, Width, Height, false, wnd ) -- لعمل قريد في النافذة guiGridListGetSelectedItemText ( GridList ) -- للحصول على نص الغرض المختار column مثال بإستخدام الـ wnd = guiCreateWindow ( X, Y, Width, Height, 'Example', false, false ) -- لعمل نافذة gridList = guiCreateGridList ( X, Y, Width, Height, false, wnd ) -- لعمل قريد في النافذة column = guiGridListAddColumn ( gridList, 'Example', 0.8 ) -- في القريد column لعمل guiGridListGetSelectedItemText ( gridList, column ) -- للحصول على نص الغرض المختار ** column = عمود
  4. You can create a table that contains the skins and then use math.random to extract a skin ,, + Don't spam
  5. getDistanceBetweenPoints2D or getDistanceBetweenPoints3D giveWeapon
  6. ؟؟ Top Times الكود إللي إنت حاطه حق شراء دباب, وش دخل الـ ! Top Times إطرح كود الـ
  7. ما ني شايف هنتر بالكود ؟؟
  8. PaiN^

    طلب

    الليبل فقط كمثال, يمديك تستخدمه عالنوافذ كمان
  9. That depends on what gamemode your using, Open the file off it, and add this code : addEventHandler ( 'onPlayerSpawn', root, function ( ) giveWeapon ( source, 1 ) end ) addEventHandler ( 'onPlayerJoin', root, function ( ) giveWeapon ( source, 1 ) end )
  10. You can modify the broph.lua file [ if you were using the play gamemode ] To give weapons to players when they join the servers and spawn / respawn ... And i don't know about brass knuckles, But you can try ..
  11. If it could work, Then it well be server sided ..!
  12. PaiN^

    Panel Help

    @Solidsnake14 : Does my code above work ?
  13. I would love that waqaarali do it, But since you did and there are some mistakes, I'll fix it : addCommandHandler ( 'dp', function ( ) local car = getPedOccupiedVehicle ( source ) setVehicleDamageProof ( car, true ) end ) addCommandHandler ( 'dpoff', function ( ) local car = getPedOccupiedVehicle ( source ) setVehicleDamageProof ( car, false ) end )
  14. You have to do it so you can learn, It's an easy script, Take your time ... If you couldn't, Post your attempt and we'll fix it for you
  15. PaiN^

    Panel Help

    That's great, Thanx for the info
  16. 'onClientGUIClick' playSound هذا لمن تلمس زر, الثاني ما أعرفله الصراحة ذذ
  17. PaiN^

    Help

    Oh, You're right, forget about that
  18. guiCreateStaticImage I advice you to use the guieditor resource to determine the place of the picture .. + We don't give full codes, You make your own and if it didn't work then we'll help , Or search in the community, Or pay some scripter to do it for you ..
  19. I think [basic Help With Scripting For Starters] should be about the most usable functions in scripting, Such ass addEventHandler and addCommandHandler and not gridlists and labels ... EDIT : Fixed addEventHandler !
  20. PaiN^

    Scoreboard

    But it worked by this : local none = "None" setElementData(players, "Clan", none) And didn't by this : setElementData(players, "Clan", "None") s:
  21. PaiN^

    Help

    You can do this by using the event onVehicleDamage, get the health of the vehicle with the function getElementHealth, and check if the health of the vehicle is low (before it get fire) then make it not damageable with the function setVehicleDamageProof. That's a long way, Mr.Pres[T]ege's way is better ..
×
×
  • Create New...