Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. جرب addEventHandler("onPlayerChat", root, function(msg, msgType) if msgType == 1 then cancelEvent() local r, g, b = getPlayerNametagColor ( source ) local name = getPlayerName(source) local color = string.format("#%.2X%.2X%.2X", r, g, b) outputChatBox("#1EA620* "..color..name..": #1EA620"..msg, getRootElement(), r, g, b, true) end end)
  2. سطر 7 و 6 ؟؟؟
  3. if exports ["exp_system"]:getPlayerLevel ( thePlayer ) >= 7 then
  4. عليكم السلام ما فهمت ايش تبي تبي برنامج حماية؟ ركب كاسبر سكاي؟
  5. marker createMarker ( float x, float y, float z [, string theType = "checkpoint", float size = 4.0, int r = 0, int g = 0, int b = 255, int a = 255 ] ) المكان x y z الحجم size اللون r g b
  6. كل شي مشروح بالويكي ايش الي ما فهمته هنا بالضبط؟
  7. الفنكشن الي يسوي الماركر هذا createMarker اضغط عليه و يجي لك شرح الكود و الأحداثيات تقدر تجيبها من اف1 حق الفري روم او من لوحة الأدمنية /gp او كلمة موجوده في الفري روم + مو لازم تستخدم ماب اديتور
  8. addEventHandler("onPlayerLogin", root, function() givePlayerMoney(source,3221) end)
  9. جرب function hud() local money = getPlayerMoney() if money == 0 then r, g, b = 255, 255, 255 elseif money > 0 then r, g, b = 0, 100, 0 elseif money < 0 then r, g, b = 255, 0, 0 end dxDrawText("$"..tostring(money), (835/1024)*sWidth, (24/768)*sHeight, (994/1024)*sWidth, (39/768)*sHeight, tocolor(r, g, b, 255), (0.70/1024)*sWidth, (0.70/768)*sHeight, "bankgothic", "left", "top", false, false, false, true) end addEventHandler("onClientRander", root, hud)
  10. TAPL

    GIRD list

    for row=0, guiGridListGetRowCount(gridList) do -- do whatever you want. end
  11. function boughtSM ( button ) if button == "left" then local g_Money = getPlayerMoney() -- define it inside the function. if ( g_Money >= 15 ) then -- >= greater than or equal to. outputChatBox ("#ffffffYou bought Salad Meal", 255,255,255, true ) takePlayerMoney (15) else outputChatBox ("#ff0000Sorry, you have no enough money", 255,255,255, true ) -- takePlayerMoney (0) -- no need for this. end end end
  12. TAPL

    GUI Problem

    What a mess. player? source? GuiSetEnabled? dxDrawImage? onClientRender? onPlayerJoin is server side.
  13. TAPL

    GUI Problem

    see? you don't use parent argument. https://wiki.multitheftauto.com/wiki/GuiCreateStaticImage loginButton2 = guiCreateStaticImage(553, 447, 178, 100, "loginBut.png", false, YourWindowVariableHere)
  14. TAPL

    GUI Problem

    Have you used the parent argument?
  15. Server: addEventHandler("onPlayerLogin", root, function() triggerClientEvent(source, "onPlayerEnter", source) end)
  16. هذا لانك كنت تستخدم الأصدار القديم الداتا بيس column و بعدين ركبت الجديد الي صار فيه تعديلات على و عشان كذا صارت المشكلة لان احمد فيفي ذكي من جديد column جرب تحذف ملف قاعدة البيانات عشان يسوي الـ db ملف بصيغه groups-system تلقى ملف القاعدة مع المودات في مجلد اسمه
  17. عجيب انت خخ من قال لك ان كل الأجانب لغتهم انجليزي؟ فيه روسي و اسباني و فرنسي و ياباني و صيني و بنقالي حتى هندي فيه ولا تحسب الهنود لغتهم انجليزي؟ ولا الظاهر ما شفت هنود تتكلم معهم انجليزي و هم ولا يدرون وش السالفه ههه ولا فيه ناس يحسبون الأجانب كلهم امريكان خخخ
  18. https://forum.multitheftauto.com/viewtopic.php?f=91&t=66230
  19. TAPL

    Radar

    This is not easy to do, if it possible. If you don't know which function will be used then don't waste your time trying because you will never do it.
  20. 1.3.4
  21. 1- ممكن اصدار السيرفر يختلف 2- ممكن المود يحتاج إلى مود ثاني و المود الثاني موجود في اللوكل و مو موجود في سيرفر الأستضافة
  22. Double function? addEventHandler("onClientPlayerDamage",root,function()function(attacker, weapon, bodypart, loss) Edit: The script itself make no sense, what have mechanic job to do with event onClientPlayerDamage and health 100 and Heal > 100 and + 10 and even health not defined here if (health <= 99) then.
  23. ذي الألقاب و عدد المشاركات حقها الحمد الله انا ما عندي لقب Playa-Hater 0-3 Vic 4-10 Square 11-19 Civilian 20-29 Rat 30-49 Snitch 50-69 Transformer 70-89 Punk-@ss B*tch 90-109 Sucka 110-125 Poot-butt 126-145 Busta 146-169 Mark 170-189 Chump 199-215 Trick 216-239 Red-Headed Stepchild 240-259 Peon 260-279 Pee-Wee 280-299 Prankster 300-329 Fool 330-359 Street Cat 360-389 Thug 390-435 Hustler 436-499 Playa Partner 500-559 Mack 560-599 Pimp 600-639 Crime Partner 640-689 Homeboy 690-739 Homie 740-799 Road Dawg 800-879 Hoodsta 880-969 Hard-@ss 970-1089 Banger 1090-1199 Lil' G 1200-1399 Loc 1400-1799 Jacker 1800-2249 Shooter 2250-2749 Foot Soldier 2750-3199 Hoo-Rider 3200-3599 Soldier 3600-4299 Hawg 4300-5599 Gangsta 5600-6999 Ghetto Star 7000-7999 Monster 8000-8999 Big Homie 9000-9999 Boss Hawg 10000-11999 Shot Caller 12000-14999 OG 15000-19999 High Roller 20000-29999 Four-Star General 30000-39999 King of San Andreas 40000+
  24. When you use non classical Arabic Google translation cannot translate in the way it meant to be, also you will have to recheck what it been translated to clean it from errors because Google not genius. This is how your topic should be:
  25. who is source? It's player not source. function getNicks(player, command, nick) If you want only online accounts then why you need to loop through all accounts in the server? rather than that you can loop through all player in the server and get their account function getNicks(player, command, nick) if not nick then outputChatBox("[Nick]: Please specify a nick!", player, 0,175,255, false) return end iii = false for i, p in ipairs(getElementsByType("player")) do local playerAccount = getPlayerAccount(p) if playerAccount and not isGuestAccount(playerAccount) then local named = getAccountData(playerAccount, "name") if named and string.match(named, nick) then local name = getPlayerName(p) local accName = getAccountName(playerAccount) outputChatBox("[Nick]: Player: "..named..", real nick: "..name..", account: "..accName, player, 0, 175, 255, false) iii = true end end end if not iii then outputChatBox("[Nick]: failed to find a match!", player, 0, 175, 255, false) end end addCommandHandler("getNick", getNicks)
×
×
  • Create New...