HassoN

Members
  • Content Count

    436
  • Joined

  • Last visited

  • Days Won

    2

HassoN last won the day on July 16

HassoN had the most liked content!

Community Reputation

28 Good

4 Followers

About HassoN

Details

  • Gang
    CIT
  • Location
    Switzerland
  • Occupation
    Scripter
  • Interests
    Nature.

Recent Profile Visitors

897 profile views
  1. بالمتغيرات .. حط متغير بعد مايسجل الدخول وتحقق لو موجود المتغير ذا مايسوي الصورة مثال visible = true -- حطها بعد مايسجل دخوله if (visible) then -- حطها داخل كود الصورة return false end
  2. <forum was bugged, delete my double comment pls>
  3. دفع باي بال فقط Discord: HassoN#2709
  4. You're welcome! Yes. You may use getPedAnimation
  5. Ugh yea that's true. I've tried it with onPlayerChat and it worked so I thought it could work with onPlayerJoin as well. Thanks for the correction tho
  6. Taking your example of addEvenHandler("onPlayerJoin", root, function() It will trigger whenever a player connects because you used 'root'. But if you for example replace root with a specific player it only trigger when THAT player connects. An example: addEventHandler("onPlayerJoin", getPlayerFromName("HassoN"), function() outputChatBox("HASSON IS HERE", root) end) The outputChatBox will only be triggered if a player called HassoN joins. Got it?
  7. Player's position isn't going to change if the player dies, unless you spawn him somewhere else. So nope. My code should work.
  8. ألا فهمتك كويس ، المفروض تسوي شي زي كذا local red = guiRadioButtonGetSelected(redButton) local green = guiRadioButtonGetSelected(greenButton) local blue = guiRadioButtonGetSelected(blueButton) if (red) then r, g, b = 255, 0, 0 elseif (green) then r, g, b = 0, 255, 0 elseif (blue) then r, g, b = 0, 0, 255 end -- وكذا يكون عندك اللون بال r, g, b
  9. hosp_loc = { {-2655, 635, 14, 180}, -- San Fierro {2038, -1411, 17, 130}, --Jefferson {1173, -1323, 15, 270}, -- All Saints {1242, 327, 19, 340}, -- Red County {1609, 1816, 12, 360}, -- Las Venturas {-2200, -2311, 30, 320}, -- Angel Pine {-320, 1049, 20, 0}, --Fort Carson - Bone County {-1514.5, 2524, 56, 0} --Tierra Robada } function getDistance(thePlayer) local dist = 9999999 local data = nil for _, v in ipairs ( hosp_loc ) do local x, y, z = getElementPosition (thePlayer) local c = getDistanceBetweenPoints3D ( x, y, z, v[1], v[2], v[3] ) if ( c <= dist ) then dist = c data = { v[1], v[2], v[3], v[4]} end end if (data) then skin = getElementData(thePlayer, "respawn-skin") spawnPlayer(thePlayer, data[1], data[2], data[3], data[4], skin) setElementModel(thePlayer, skin) fadeCamera(thePlayer, true, 2.5) end end function Respawn() local skinid = getElementModel(source) setElementData(source, "respawn-skin", skinid) setTimer(getDistance, 7500, 1, source) end addEventHandler("onPlayerWasted", root, Respawn)
  10. guiGetText -- جيب الكلام الي بالادت بوكس guiRadioButtonGetSelected -- تحقق انه مختار الراديو بوتون outputChatBox -- طلع الكلام
  11. الكود يسويلك دوائر بالعبة ، تقريباً عشان شكل الماركرات؟ ما ادري ايش كان استعمالها
  12. What do you mean by saving it for each team? like an xml for each team? then create separated xml files for each one and apply the same functions.