Jump to content

!#NssoR_)

Retired Staff
  • Posts

    1,474
  • Joined

  • Last visited

  • Days Won

    23

Everything posted by !#NssoR_)

  1. Sorry for the delay in reply. vehSpawnMark = createMarker (x,y,z, "cylinder", 5, 0, 255, 203, 100 ) VehiclesTable = {} function spawnvehicle (hitElement) if ( isElement(hitElement) and getElementType(hitElement) == 'player' ) then local theVeh = getPedOccupiedVehicle(hitElement) if ( theVeh ) then if ( VehiclesTable[hitElement] ) then destroyElement(theVeh) VehiclesTable[hitElement] = nil outputChatBox ("Your vehicle has been destroyed because you touched this marker", hitElement, 0, 255, 0) return -- If u wanna give you a new vehicle after destroyed, delete this line end end local x, y, z = getElementPosition (hitElement) local rotX, rotY, rotZ = getElementRotation (hitElement) VehiclesTable[hitElement] = createVehicle (411, x-10, y, z) setElementRotation (VehiclesTable[hitElement], rotX, rotY, 90) warpPedIntoVehicle (hitElement, VehiclesTable[hitElement]) outputChatBox ("You successfully spawned an Infernus!", hitElement, 0, 255, 0) end end addEventHandler("onMarkerHit", vehSpawnMark, spawnvehicle) addEventHandler('onPlayerQuit',root, function () if ( VehiclesTable[source] ) then -- If the player has a vehicle from this script. destroyElement(VehiclesTable[source]) -- Delete it. VehiclesTable[source] = nil -- Remove player value from the vehicles table. end end)
  2. كلام الاخ ايكو صحيح , الحدث هذا هو الذي يقوم بمنع القتل من السكين
  3. vehSpawnMark = createMarker (x,y,z, "cylinder", 5, 0, 255, 203, 100 ) VehiclesTable = {} function spawnvehicle (thePlayer) if ( getElementType(thePlayer) == 'player' ) then local theVeh = getPedOccupiedVehicle(thePlayer) if ( theVeh ) then if ( VehiclesTable[thePlayer] ) then destroyElement(theVeh) VehiclesTable[thePlayer] = nil outputChatBox ("Your vehicle has been destroyed because you touched this marker", thePlayer, 0, 255, 0) return -- If u wanna give you a new vehicle after destroyed, delete this line end end local x, y, z = getElementPosition (thePlayer) local rotX, rotY, rotZ = getElementRotation (thePlayer) VehiclesTable[thePlayer] = createVehicle (411, x-10, y, z) setElementRotation (VehiclesTable[thePlayer], rotX, rotY, 90) warpPedIntoVehicle (thePlayer, VehiclesTable[thePlayer]) outputChatBox ("You successfully spawned an Infernus!", thePlayer, 0, 255, 0) end end addEventHandler("onMarkerHit", vehSpawnMark, spawnvehicle) addEventHandler('onPlayerQuit',root, function () if ( VehiclesTable[source] ) then -- If the player has a vehicle from this script. destroyElement(VehiclesTable[source]) -- Delete it. VehiclesTable[source] = nil -- Remove player value from the vehicles table. end end)
  4. بما ان تم حل المشكلة التي تم إنشاء الموضوع لأجلها , فيجب عليك إنشاء موضوع جديد يختص بمشكلتك الجديدة يغلق..#
  5. رجاء قم بالتكمله بالموضوع السابق ويرجي عدم فتح اكثر من موضوع بنفس الطلب يغلق
  6. I have tried it and everything is perfect with me ! maybe from your server !
  7. for i,k in ipairs (Place) do local l = guiGridListAddRow (placelist) guiGridListSetItemText (placelist,l,1,tostring(k[1]),false,false) guiGridListSetItemText (placelist,l,2,"$"..convertNumber(tonumber(k[5])),false,false) guiGridListSetItemData(placelist,l,1,{k[2],k[3],k[4],k[5]}) guiGridListSetItemColor(placelist,l,1,0,150,255) guiGridListSetItemColor(placelist,l,2,0,255,0) end guiSetFont(placelist,"f1.ttf") -- هذا تحطه تحت كود إنشاء القريد ليست function convertNumber ( number ) local formatted = number while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if ( k == 0 ) then break end end return formatted end
  8. رجاءً اذا كان الموضوع يتعلق بك يمكنك ان تتناقش معي , فـ إذا لايتعلق بك فـ ليس من الضروري ان اجيبك لأنني اعرف ماذا افعل
  9. يجب عليك اضافة رابط لتحميل المود بدلاً من وضع الاكواد بهذا الشكل ! امامك ٢٤ ساعة وسيتم حذف موضوعك اذا لم تطبق ماقلته
  10. http://www.lua.org/manual/5.1/manual.html#pdf-table.sort
  11. نعم اخوي تضبط
  12. حط السيارة بعالم وهمي كمان
  13. تمت إزالة الردود الخارجة عن محتوي الموضوع وتم تنبيه بعض الاعضاء بالخاص , وفي المره القادمة ستتم مخالفتهم .
  14. سطر 8 راجع الساينتكس الخاص بالكود
  15. بما ان تمت اللإفادة يرجي منك فتح موضوع جديد يتعلق بالمشكلة الجديدة يغلق..#
  16. إذا قمت بعمل الترايقر بهذا الشكل سيأثر علي السيرفر( اذا كان عدد لاعبينك 50 ومافوق ) بسبب تكرار الترايقر بعدد اللاعبين المتواجدين بالسيرفر
  17. في هذه الصفحة يوجد كل الشروحات المتعلقه بالسترنق وكما انها باللغة العربية , وشكرأ لكل من ساهم في تعريب الشروحات واتمني لك التوفيق
  18. !#NssoR_)

    cant see player names

    In a particular server or all servers?
  19. Wiki says : Note: You cannot use "check", "list" or "test" as a command name.
×
×
  • Create New...