-
Posts
1,474 -
Joined
-
Last visited
-
Days Won
23
Everything posted by !#NssoR_)
-
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)
-
كلام الاخ ايكو صحيح , الحدث هذا هو الذي يقوم بمنع القتل من السكين
-
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)
-
رجاء قم بالتكمله بالموضوع السابق ويرجي عدم فتح اكثر من موضوع بنفس الطلب يغلق
-
I have tried it and everything is perfect with me ! maybe from your server !
-
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
-
رجاءً اذا كان الموضوع يتعلق بك يمكنك ان تتناقش معي , فـ إذا لايتعلق بك فـ ليس من الضروري ان اجيبك لأنني اعرف ماذا افعل
-
يجب عليك اضافة رابط لتحميل المود بدلاً من وضع الاكواد بهذا الشكل ! امامك ٢٤ ساعة وسيتم حذف موضوعك اذا لم تطبق ماقلته
-
http://www.lua.org/manual/5.1/manual.html#pdf-table.sort
-
حط السيارة بعالم وهمي كمان
-
يغلق كما طلب صاحب الموضوع ..#
-
بما ان تمت اللإفادة يرجي منك فتح موضوع جديد يتعلق بالمشكلة الجديدة يغلق..#
-
New WnashTime || حصصريات وناسة تايم
!#NssoR_) replied to ععيونككء اخخر امممأليء ^'s topic in Arabic / العربية
@Skully نعم -
إذا قمت بعمل الترايقر بهذا الشكل سيأثر علي السيرفر( اذا كان عدد لاعبينك 50 ومافوق ) بسبب تكرار الترايقر بعدد اللاعبين المتواجدين بالسيرفر
-
في هذه الصفحة يوجد كل الشروحات المتعلقه بالسترنق وكما انها باللغة العربية , وشكرأ لكل من ساهم في تعريب الشروحات واتمني لك التوفيق
-
In a particular server or all servers?
-
Wiki says : Note: You cannot use "check", "list" or "test" as a command name.