Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 27/04/19 in Posts

  1. ارفعو صوركم ولا تخجلون انا البندر مسوي حساب جديد عشاني نسيت الباسورد حق الحساب القديم
    2 points
  2. Here's a little teaser of a work in progress first party module for Slipe, called SlipeWPF. For those of you unaware of WPF, it's a GUI framework which allows you to create windows desktop applications. We're also bringing this to MTA. This window, created in Visual studio, will turn into: And all it requires to render it in MTA is this little bit of code: MainWindow window = new MainWindow(); Window guiWindow = CeguiWpfRenderer.Render(window);
    2 points
  3. السلام عليكم ورحمة الله تعالى وبركاته تم الأنتهاء من عمل نظام التاجات الجديد والحصري ~ الفيديو الخاص بالسكربت : يستحسن مشاهدة الفيديو لمعرفة كيفية استخدام السكربت وازالة التكرار مع سكربت التاجات العادية ( تاجات الرتب ) .! مميزات هذا السكربت عن باقي السكربتات المشابهه له : - إمكانية تفعيل \ الغاء تفعيل التاج - يعني إنك تقدر تكتب بأف 8 myTag عشان تخلي التاج متفعل او العكس اذا متفعل وتتكلم بالشات يطلع تاجك والعكس يطلع تاج الرتب ^ - امكانية رؤية الأشخاص اللي مفعلهم الأدمن - يعني انك تقدر من لوحة ادارة التاجات تشوف الناس اللي مفعلهم تشوف تاجهم , اسمهم , السيريال , والحالة الخاصة بالتاج | متفعل \ ملغي - عدم القدرة على وضع تاج بدون مايتم التحقق الكامل من السيريال والتاج - يعني انك ماتقدر تحط التاج لاي شخص .. إلا تضغط زر التحقق من السيريال + معاينة التاج ومن ثم الموافقة او الرجوع للوحة الأصلية طبعا معاينة التاج لو طلع التاج كبير راح يجيك بالشات تنبيه يقولك التاج طويل , طبعا تقدر تحطه للاعب بس يجيك عشان ينبهك ^ صورة اللوحة الرئيسية : طبعا كيف نشيل التكرار مع مود التاجات العادية ؟ ( تاجات الرتب ) , نحط الكود التالي : local systemDBconnect = dbConnect( 'sqlite', ':TagsSystem-Professional_v01/[TAGS system] Database.db' ) local checkTag = dbQuery( systemDBconnect, ' SELECT * FROM `TagsSystemPro` WHERE serial = ? ', getPlayerSerial( source ) ) local dbValues = dbPoll( checkTag, -1 ) if ( type( dbValues ) == 'table' and #dbValues ~= 0 ) then local state = dbValues[1]['state'] if ( state == 'Enabled' ) then return end end نحط الكود مثل ما بالصورة الكود : المكان اللي نحطه فيه في ملف التاجات : --------------------------------------- الأصدار الحالي من السكربت : 1.0 لتحميل الإصدار : http://www.mediafire.com/download/pkp7x ... al_v01.zip إنضم معنا في MTA العرب : https://www.facebook.com/groups/luaprofessional للتواصل : Skype : kamel1234128 Facebook : http://www.fb.com/MR.GRAND0 Email : [email protected] الإهداءات : 1 - TAPL 2 - MR.SAUD 3 - MR.SAAD 4 - iMr.WiFi..! 5 - 1XxCr{o}sS 6 - SaedAmer 7 - #Le3bA 8 - Ma[Z]en 9 - Emgawe.117 10 - NssoR 11 - ♯~|StrΘnG|~. 12 - Ahmed Ly 13 - shwaeki 14 - #Mr.Rajo~,< 15 - Mr.Ronaldo 16 - Mr.CoR 17 - HasoN 18 - Soking 19 - EH10 20 - Default 21 - DABL 22 - justboy 23 - MoDeR2014 24 - x',iM7MD 25 - #,+( _xiRoc[K]; > 26 - DTC12 27 - #|_oskar_|# 28 - mouamle-hassan 29 - Abdul KariM 30 - 00 - الباقي في القلب
    1 point
  4. شكراً للتذكير
    1 point
  5. Upei no mediafire pra você baixar, deleta esse seu e colocar o que você baixar. Link: limparFicha
    1 point
  6. Ainda falta colocar o comando anexado no marker, pra colocar coisas anexada ao marker é pelo client, então vamos ter que usar os 2 lados, server e client, é um pouco mais complicado, mas vou fazer pra você entender, faça assim: client-side local estrelasL = createMarker (256, 66, 1003, "cylinder", 1.3, 0, 0, 255, 100) setElementDimension (estrelasL, 1) setElementInterior (estrelasL, 6) addEventHandler ("onClientMarkerHit", estrelasL, function (hitPlayer, matchingDimension) outputChatBox ("Para limpar a ficha use /limparficha", 0, 255, 0) end) addEventHandler ("onClientRender", getRootElement(), function () dxDrawTextOnElement (estrelasL, "Limpe sua ficha aqui: /limparficha", 1, 20, 0, 255, 0, 255, 2, "default-bold") end) function dxDrawTextOnElement (TheElement, text, height, distance, R, G, B, alpha, size, font, ...) local x, y, z = getElementPosition (TheElement) local x2, y2, z2 = getCameraMatrix () local distance = distance or 20 local height = height or 1 if (isLineOfSightClear(x, y, z+2, x2, y2, z2, ...)) then local sx, sy = getScreenFromWorldPosition (x, y, z+height) if(sx) and (sy) then local distanceBetweenPoints = getDistanceBetweenPoints3D (x, y, z, x2, y2, z2) if (distanceBetweenPoints < distance) then dxDrawText (text, sx+2, sy+2, sx, sy, tocolor(R or 255, G or 255, B or 255, alpha or 255), (size or 1)-(distanceBetweenPoints / distance), font or "arial", "center", "center") end end end end addCommandHandler ("limparficha", function () if isElementWithinMarker (localPlayer, estrelasL) then -- Se o jogador estiver no marker, então: triggerServerEvent ("onRequestLimparFicha", localPlayer) else outputChatBox ("Você não esta na delegacia", 255, 30, 30) end end) server-side local delentrar = createMarker (1554, -1675, 15, "cylinder", 1.3, 255, 255, 255, 50) local delsair = createMarker (247, 63, 1003, "cylinder", 1.3, 255, 255, 255, 50) setElementDimension (delsair, 1) setElementInterior (delsair, 6) function teleporte1 (thePlayer) setElementPosition (thePlayer, 246.44583129883, 67.712219238281, 1003.640625) setElementInterior (thePlayer, 6) setElementDimension (thePlayer, 1) end addEventHandler ("onMarkerHit", delentrar, teleporte1) function teleporte2 (thePlayer) setElementPosition (thePlayer, 1543, -1675, 13) setElementInterior (thePlayer, 0) setElementDimension (thePlayer, 0) end addEventHandler ("onMarkerHit", delsair, teleporte2) function clearFicha () if getPlayerMoney (client) >= 1500 then -- Se o jogador tiver 1500 ou mais, então: if getPlayerWantedLevel (client) > 0 then -- Se o jogador tiver + de 1 estrela de procurado, então: setPlayerWantedLevel (client, 0) -- Seta a estrela do jogador em 0 takePlayerMoney (client , 1500) -- Retira a quantia do jogador, 1500. outputChatBox ("[Delegacia] Você limpou a sua ficha e pagou $1500!" , client, 0, 255, 0) else outputChatBox ("[Delegacia] Você não esta procurado!", client, 255, 30, 30) end else outputChatBox ("[Delegacia] Você não tem dinheiro suficiente!", client, 255, 30, 30) end end addEvent ("onRequestLimparFicha", true) addEventHandler ("onRequestLimparFicha", getRootElement(), clearFicha) Meta: <meta> <script src="server.lua" type="server"/> <script src="client.lua" type="client" cache="false"/> </meta>
    1 point
  7. local delentrar = createMarker (1554, -1675, 15, "cylinder", 1.3, 255, 255, 255, 50) local estrelasL = createMarker (256, 66, 1003, "cylinder", 1.3, 0, 0, 255, 100) setElementDimension (estrelasL, 1) setElementInterior (estrelasL, 6) local delsair = createMarker (247, 63, 1003, "cylinder", 1.3, 255, 255, 255, 50) setElementDimension (delsair, 1) setElementInterior (delsair, 6) function msg (thePlayer) outputChatBox ("Use /limparficha para remover suas estrelas de procurado!", thePlayer, 0, 255, 0) end addEventHandler ("onMarkerHit", estrelasL, msg) function teleporte1 (thePlayer) setElementPosition (thePlayer, 246.44583129883, 67.712219238281, 1003.640625) setElementInterior (thePlayer, 6) setElementDimension (thePlayer, 1) end addEventHandler ("onMarkerHit", delentrar, teleporte1) function teleporte2 (thePlayer) setElementPosition (thePlayer, 1543, -1675, 13) setElementInterior (thePlayer, 0) setElementDimension (thePlayer, 0) end addEventHandler ("onMarkerHit", delsair, teleporte2) function clearFicha (thePlayer, cmd) if isElementWithinMarker (thePlayer, estrelasL) then -- Se o jogador estiver no marker, então: if getPlayerMoney (thePlayer) >= 1500 then -- Se o jogador tiver 1500 ou mais, então: if getPlayerWantedLevel (thePlayer) > 0 then -- Se o jogador tiver + de 1 estrela de procurado, então: setPlayerWantedLevel (thePlayer, 0) -- Seta a estrela do jogador em 0 takePlayerMoney (thePlayer , 1500) -- Retira a quantia do jogador, 1500. outputChatBox ("[Delegacia] Você limpou a sua ficha e pagou $1500!" , thePlayer, 0, 255, 0) else outputChatBox ("[Delegacia] Você não esta procurado!", thePlayer, 255, 30, 30) end else outputChatBox ("[Delegacia] Você não tem dinheiro suficiente!", thePlayer, 255, 30, 30) end else outputChatBox ("Você não esta na delegacia.", thePlayer, 255, 30, 30) end end addCommandHandler ("limparficha", clearFicha) addCommandHandler ("ir", function (thePlayer) setElementPosition (thePlayer, 1543, -1675, 13) end) Digite /ir para ir até a delegacia, todos markeres estão nas posições normais novamente.
    1 point
  8. Enfim, aqui funcionou perfeitamente, você esta fazendo alguma coisa errada ai colega, o comando não tem nenhum erro de sintaxe. /debugscript 3 Limpe seu arquivo server, coloque somente essa parte pra testar.
    1 point
  9. Eu testei, como não esta funcionando? Meta: <meta> <script src="server.lua" type="server"/> </meta>
    1 point
  10. Aí não tem nenhum comando, logicamente não vai funcionar, desculpa a demora, caiu a energia aqui, oque você estava fazendo de errado: R: Você declarou 'player' como parâmetro e estava usando 'source' e esqueceu de fazer a verificação se o cara realmente esta procurado ou não, adicionei o marker no centro do mapa e adicionei um comando pra você ir até ele e testar, use: /ir. Correção: local estrelasL = createMarker (0, 0, 3, "cylinder", 1, 0, 0, 255, 100) setElementDimension (estrelasL, 0) -- setElementInterior (estrelasL, 6) function msg (thePlayer) outputChatBox ("Use /limparficha para remover suas estrelas de procurado!", thePlayer, 0, 255, 0) end addEventHandler ("onMarkerHit", estrelasL, msg) function clearFicha (thePlayer, cmd) if isElementWithinMarker (thePlayer, estrelasL) then -- Se o jogador estiver no marker, então: if getPlayerMoney (thePlayer) >= 1500 then -- Se o jogador tiver 1500 ou mais, então: if getPlayerWantedLevel (thePlayer) > 0 then -- Se o jogador tiver + de 1 estrela de procurado, então: setPlayerWantedLevel (thePlayer, 0) -- Seta a estrela do jogador em 0 takePlayerMoney (thePlayer , 1500) -- Retira a quantia do jogador, 1500. outputChatBox ("[Delegacia] Você limpou a sua ficha e pagou $1500!" , thePlayer, 0, 255, 0) else outputChatBox ("[Delegacia] Você não esta procurado!", thePlayer, 255, 30, 30) end else outputChatBox ("[Delegacia] Você não tem dinheiro suficiente!", thePlayer, 255, 30, 30) end else outputChatBox ("Você não esta na delegacia.", thePlayer, 255, 30, 30) end end addCommandHandler ("limparficha", clearFicha) addCommandHandler ("ir", function (thePlayer) setElementPosition (thePlayer, 0, 2, 3) end)
    1 point
  11. function limparE (player, commandName) if isElementWithinMarker (player, estrelasL) then if getPlayerMoney (player) >= 1500 then setPlayerWantedLevel (player, 0) takePlayerMoney (player , 1500) outputChatBox("[Delegacia] Você limpou a sua ficha!" , player) else outputChatBox("[Delegacia] Você não tem dinheiro suficiente!", player) end end end addEvent("limparE", true) addEventHandler("limparficha" , getRootElement() , limparE) Tente assim o de limpar a ficha.
    1 point
  12. السلام عليكم رجعت بعد فترة طويلة من تنزيل المودات وبما ان رمضان قرب فحبيت اسوي سكربت بسيط للسيرفرات والسكربت مسويه علسريع علشان لاحد ينتقده فيديو للمود : معليش علي جودة الفيديو مب حلوة والحين المود انه يجيب الفانوس مع الاغنية والتأثيرات كل دقايق الي انت تحددها من ملف c.lua في اول المود حاط متغير اسمه mins غيره لعدد الدقايق الي تبيه انت ولا نطول عليكم والسكربت غير مشفر للأفادة رابط تحميل المود : رمضان كريم علي الكل ____________________________________________________ الاهدائات : @KillerX @SuperX @Abdul KariM @!#NssoR_) @Rakan# @TAPL @DABL @Kareem Amer @ALBANDER. @iMr.WiFi..! @#Soking @Master_MTA @#StrOnG_,) @NX_CI @[T]|O|[P]George @ibrahim# @[AcM] - Major . @#,xiRocKyz @+Source|>
    1 point
  13. مود جميل جداً وفكرة حلوة بالذات للهجوله تسلم علي الاهداء
    1 point
  14. Csáó! Először is köszönöm, hogy megemlítettél! Király vagy! Továbbá nem tudom, hogy sikerült-e megoldanod a dolgot, de ha még nem és tudok segíteni, akkor szólj nyugodtan!
    1 point
  15. Yo Sugar. I've been away for a while but I see your still very much active on this project. Congrats man. The old days of Vice will always be fresh in my memory. Keep up the good work.
    1 point
  16. I've played some Garry's Mod recently and find out that instruments are quite popular there. I thought why not to make one in MTA. Preview video Features: synced piano sounds: every player hears them real grand piano sounds by Keppy Studios (http://kaleidonkep99.altervista.org/kep ... piano.html) sheet preview using CEF from virtualpiano.net downloading sounds (50 MB) in background so you don't have to wait to start playing on server You can customize some options in settings.lua. Download: https://github.com/Brzysiu/playablepiano/ (download on github because community upload limit is too high)
    1 point
  17. مبـــــــــــــــــدع دائـــــــما اخوك : كنترول - شيلد
    1 point
  18. من ذوقك انفداك . احترم رأيك , المقصد ي بعدي فقط الابراز وتعبئة الصورة فقط لاغير احترم رأيك , المقصد ي بعدي فقط الابراز وتعبئة الصورة فقط لاغير , بالنسبة هل بيركبونه الله اعلم بالنسبة للمعزى من التصميم المشاركة في المسابقة الي ف الوزارة
    1 point
×
×
  • Create New...