Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. Try UTF-8 without BOM.
  2. Because Team not a number but string, therefore you need to put quotation like "1" or use tonumber for Team variable.
  3. 'onClientGUIClick' guiGridListGetItemText guiGridListGetSelectedItem triggerServerEvent setElementHealth setPedArmor giveWeapon
  4. ^ ما له علاقة
  5. addCommandHandler
  6. triggerClientEvent("onSMSTrigger",sms) -- Triggering a clientside event which changes Should be: triggerClientEvent("onSMSTrigger",player, sms) -- Triggering a clientside event which changes And use table.concat to get the words after space.
  7. engineLoadCOL engineReplaceCOL
  8. Copy the code again and make sure you have stopped resource play.
  9. Actually one function and one event is enough, the same apply to the rest of your code. function playerQuit() if isElementWithinMarker(source, marker1) then moveObject(gate1, 3000, 2507.400390625, 1602.7001953125, 13.7) end if isElementWithinMarker(source, marker2) then moveObject(gate2, 3000, 2567.1005859375, 1484.099609375, 13.7) end end addEventHandler("onPlayerQuit", root, playerQuit)
  10. That's because you attached the event onPlayerQuit to a marker, marker can quit from the server?
  11. function SpawnOnBeach() spawnPlayer(source, 2938.6123046875, -2051.7548828125, 3.5480432510376, 90, math.random (7,288)) fadeCamera (source, true) setCameraTarget(source) end addEventHandler("onPlayerJoin", getRootElement(), SpawnOnBeach) addEventHandler("onPlayerWasted", getRootElement(), SpawnOnBeach) -- No event needed local sound = playSound("joinsound.mp3")
  12. playSound
  13. TAPL

    about scoreboard

    scoreboard -> dxscoreboard_clientsettings.lua
  14. TAPL

    [HELP] Scirpt

    400+ lines and just saying "not runing" doesn't help us to help you. Consider to post more details? what not work? debugscript 3 maybe? no? ok.
  15. This is your table: GUIEditor = { button = {}, window = {}, label = {}, memo = {} } You don't have tabpanel nor tab defined. GUIEditor = { button = {}, window = {}, label = {}, memo = {}, tabpanel = {}, tab = {} } Beside that you passed undefined variable in the triggers. And also you should have used the event onClientGUIClick one time and use if source == button then and elseif...
  16. بدل بلاير حط سورس و الدم ما رح يجي 200 إلا إذا حطيت الحد 200 عن طريق الفنكشن setPedStat للعالم الوهمي setElementDimension للأنترو setElementInterior
  17. الأفنت المستخدم خطأ + ما تحققت من وجود قاتل + ما تحققت ان القاتل ليس اللاعب المقتول سويت لك تحسين اضفت نوع القاتل في حالة القاتل ما كان لاعب و على فكرة صوت هيد شوت يشتغل للاعب الي مات مو اللاعب الي قتل، مدري كيف تبيه انت بس الوضع يبقى على ما هو عليه addEventHandler("onClientPlayerWasted", localPlayer, function(attacker, weapon, bodypart) if attacker and attacker ~= source then local type = getElementType(attacker) if type == "player" then outputChatBox("You Were Killed by "..getPlayerName(attacker), 51, 102, 153) else outputChatBox("You Were Killed by "..type, 51, 102, 153) end if bodypart == 9 then playSound("headShot.mp3") end end end) * ينقل إلى قسم البرمجة
  18. اضفت ملف الصوت بالميتا؟
  19. table1 = { "Good" , "Bad " , "No" , "Yes" } function Name (v) local v = tostring(v) if v then local string = "" for _, word in ipairs(table1) do if word:lower():find(v:lower()) then string = #string > 0 and string.." "..word or word end end return string end end outputChatBox(Name("o"))
  20. table1 = { "Good" , "Bad " , "No" , "Yes" } function Name (v) local v = tostring(v) if v then for _, word in ipairs(table1) do if word:lower():find(v:lower()) then return word end end end end outputChatBox(Name("G"))
  21. ^ بلاير مو معرف داخل التايمر و خلطة كلينت و سيرفر -------------------- 130000 = 130 ثانية
  22. dxDrawText -- إذا كانت الكتابة عادية dxDrawImage -- ممكن تكون الكتابة عبارة عن صورة ياريت فهمت يلا باي
  23. الكلام بيطلع لكل اللاعبين root إذا حطيت r بس أنت كاتبها خطأ ناقص حرف source يعني اللاعب الي دخل السيرفر addEventHandler("onPlayerJoin", root, function() outputChatBox ("Welcome", source, 255, 255, 255, true) end) الأفنت الي انت مستخدم جانب سيرفر عشان كذا لازم تحط نوع الملف سيرفر بغض النظر عن اسم الملف > ="Client.lua" type="server" />>
  24. ينقل إلى قسم البرمجة
×
×
  • Create New...