Jump to content

#Mr.alkmasha

Members
  • Posts

    659
  • Joined

  • Last visited

Everything posted by #Mr.alkmasha

  1. مستر سلطع ذي للماركر
  2. اسلام عليكم ابي فنكشات حق يحط علامه على كل السيارات الي موجوده ب السيرفر
  3. يب الصق الكود تحت الوحه يعني تحت ال end تبع الوحه
  4. ما يطلع شي ب الدي بق ضليت اسوي ريستارت للمود ما زبط
  5. .ما زبط و ب الدي بق مايجي شي
  6. يعني كذا؟ addEvent("Login-Register", true) addEventHandler("Login-Register", root, function(action, userName, passWord) if (action == "Login") then local account = getAccount(userName, passWord) if account then logIn(source, account, passWord) triggerClientEvent(source, "onLoginSuccess", source) else exports["guimessages"]:outputServer(source,"Wrong username or password!",0, 255, 50) end elseif (action == "Register") then local serial = getPlayerSerial(source) local TotalAcc = TotalAccounts(serial) or 0 if TotalAcc < 3 then if not getAccount(userName) then local accountAdded = addAccount(userName, passWord) if accountAdded then spawnPlayer (source,1682.52588,-2327.87305,13.54688, 0,0, 0, 0) setPlayerMoney (source, 100000) setCameraTarget (source, source) fadeCamera(source, false, 2.0) exports["guimessages"]:outputServer(source,"You have successfully registered!, you can now login with your username and password.",0, 255, 50) setAccountData(accountAdded, "reg-Serial", serial) else exports["guimessages"]:outputServer(source,"Error creating account, please contact the admin.",0, 255, 50) end else exports["guimessages"]:outputServer(source,"Account with this name already exists!",0, 255, 50) end else exports["guimessages"]:outputServer(source,"You can register up to 3 accounts only!",0, 255, 50) end end end)
  7. يب قرأت ذي Returns true if the player was spawned successfully, false otherwise.
  8. ----------------| ما في طريقه ثانيه؟ ----------------|
  9. اسلام عليكم ابي مساعده انا معي لوحة تسجيل و حطيت اذا الاعب سجل اول مره يحطه ب المطار بس ما زبط ذا الكود addEvent("Login-Register", true) addEventHandler("Login-Register", root, function(action, userName, passWord) if (action == "Login") then local account = getAccount(userName, passWord) if account then logIn(source, account, passWord) triggerClientEvent(source, "onLoginSuccess", source) else exports["guimessages"]:outputServer(source,"Wrong username or password!",0, 255, 50) end elseif (action == "Register") then local serial = getPlayerSerial(source) local TotalAcc = TotalAccounts(serial) or 0 if TotalAcc < 3 then if not getAccount(userName) then local accountAdded = addAccount(userName, passWord) if accountAdded then spawnPlayer (source,1682.52588,-2327.87305,13.54688, 0,0, 0, 0) setPlayerMoney (source, 100000) exports["guimessages"]:outputServer(source,"You have successfully registered!, you can now login with your username and password.",0, 255, 50) setAccountData(accountAdded, "reg-Serial", serial) else exports["guimessages"]:outputServer(source,"Error creating account, please contact the admin.",0, 255, 50) end else exports["guimessages"]:outputServer(source,"Account with this name already exists!",0, 255, 50) end else exports["guimessages"]:outputServer(source,"You can register up to 3 accounts only!",0, 255, 50) end end end)
  10. يعني تبيه على سياره انت تحددها و تحط احداثياتها؟
  11. صعب عليك لسا ترا
  12. ما تقدر تحول موداتهم سان اندرس ل MTA بس مثل ما قال ماكس تقدر تسوي مثلها
  13. اسلام عليكم الموضوع هو للي يبي يتعلم يسوي الفنكشات يشوف ذا الفيديو واضح + كل شي تمام الي ما يفهم يعيد المقطع و ذي قناه فيها فيديوهات عن البرمجا https://www.youtube.com/channel/UCnIs13y7k4r7_qsmYw7nCBg
  14. local LSPD = createColPolygon(551.60919,-1284.31934 , 1610, -1601, 1610, -1723, 1502, -1723, 1500, -1601) -- LSPD local SFPD = createColRectangle(551.60919,-1284.31934 , 200, 120) -- SFPD local AS = createColTube(2130.44556,-1151.15137 , 10, 30, 10) -- Allsaints Hospital local JF = createColRectangle(2130.44556,-1151.15137 , 125, 80) -- Jefferson Hospital local SF1 = createColRectangle(-2745, 576, 135, 100) -- SF Hospital local LV = createColPolygon(1559, 1801, 1559, 1801, 1558, 1910, 1674, 1910, 1681, 1806) -- LV Hospital local LVR = createColPolygon(1719, 1923, 1719, 1923, 1755, 1924, 1756, 2000, 1718, 2000) -- LV Recovery local PHI = createColPolygon(4324, 844, 4324, 844, 4401, 804, 4374, 697, 4373, 674, 4335, 670, 4335, 605, 4281, 605, 4280, 708, 4259, 799) -- Pirate local LVE = createColPolygon(1242, 819, 1242, 819, 1245, 789, 1202, 788, 1201, 817) -- LV East Hospital local zones = {LSPD, SFPD, AS, JF, SF1, LV, LVR, PHI, LVE} function isElementWithinSafeZone(element) if (not isElement(element)) then return false end if (getElementDimension(element) ~= 0 or getElementInterior(element) ~= 0) then return false end for i, zone in pairs(zones) do if (isElementWithinColShape(element, zone)) then return true end end return false end function enterSafeZone(element, matchingDimension) if (element ~= localPlayer or not matchingDimension) then return end if (getElementDimension(element) ~= 0) then return end if (exports.CORteams:isPlayerInTeams(localPlayer, "Staff")) then return end if (isTimer(leaveTimer)) then killTimer(leaveTimer) end if (exports.CORteams:isPlayerInTeams(localPlayer, "Armed Forces", "SWAT Team", "Police Service", "Government")) then --exports.CIThelp:dm("You have entered a no-camping zone, please leave the area within 1 minute or you will be killed", 0, 255, 0) --leaveTimer = setTimer(handleLimit, 60000, 1) --exports.CIThelp:modTextBar("campHandler", "Protected, no camp area", 0, 255, 0) else --exports.CIThelp:dm("You have entered a no-camping zone, please leave the area within 1 minute(s) or you will be killed", 0, 255, 0) --leaveTimer = setTimer(handleLimit, 60000, 1) setPedWeaponSlot(localPlayer, 0) --exports.CIThelp:modTextBar("campHandler", "Protected, no camp area", 0, 255, 0) end end function exitSafeZone(element, matchingDimension) if (element ~= localPlayer or not matchingDimension) then return end if (isTimer(leaveTimer)) then killTimer(leaveTimer) end exports.CIThelp:modTextBar("campHandler", "") end for i, zone in pairs(zones) do addEventHandler("onClientColShapeHit", zone, enterSafeZone) addEventHandler("onClientColShapeLeave", zone, exitSafeZone) end function handleLimit() if (exports.CORteams:isPlayerInTeams(localPlayer, "Staff")) then return end if (getElementDimension(localPlayer) ~= 0) then exports.CIThelp:modTextBar("campHandler", "") return end exports.CIThelp:dm("You have been killed for camping", 0, 255, 0) setElementHealth(localPlayer, 0) end function preventWeaponUse(prevSlot, newSlot) if (not isElementWithinSafeZone(localPlayer)) then return end if (getElementDimension(localPlayer) ~= 0) then return end if (exports.CORteams:isPlayerInTeams(localPlayer, "Staff")) then return end if (exports.CORteams:isPlayerInTeams(localPlayer, "Armed Forces", "SWAT Team", "Police Service", "Government")) then setPedWeaponSlot(localPlayer, 1) elseif (getElementData(localPlayer, "o") == "Explorer" or getElementData(localPlayer, "o") == "News Reporter") then setPedWeaponSlot(localPlayer, 9) else exports.CORtexts:output("You are not allowed to use weapons in a no camping zone", 0, 255, 0) setPedWeaponSlot(localPlayer, 0) end end addEventHandler("onClientPlayerWeaponSwitch", localPlayer, preventWeaponUse)
  15. حدث العاقل بما لا يعقل فأن صدق فلا عقل له! مشالله عليك شاعر
  16. وعلى اي اساس سيويتها كذا ؟ يعني ما يمديك تحط شيء داخل الفنكشن Parameters الحدث اساسا مافيه برامتر source : The source of this event is the player who joined. اوك بس ترا ب السيرفر التجريبي زبط معاي
  17. انا مسويها على اساس كذا function loginPlayer( element) شوف كلمت element
  18. هريس لو ما تعرف تساعد مو مجبور تساعد function PlayerJoin ( ) if ( getPlayerSerial ( source ) == "Serial" ) then outputChatBox ( "#FF0000* "..getPlayerName ( source ).." Joined Server !", source, 255, 255, 255, true ) end end addEventHandler ( "onPlayerJoin", root, PlayerJoin ) لا بالله ب وش يختلف كودي عن كودك؟
  19. جرب function loginPlayer ( element) if ( getPlayerSerial ( element ) == "اكتب السيريال" ) then outputChatBox ( " #ffffff دخل الى "..getPlayerName(element).."#00FF00** السيرفر",element, 0, 255, 0, true ) end end addEventHandler ( "onPlayerJoin", root, loginPlayer )
  20. ?? انا اعرفه من زمان وكان عندي بالسكايب القديم لكن السكايب القديم انحظر هذي هي السالفة واتمنى م تتدخل المرة الجاية في اشياء م تخصك طيب و اتمنى تتلكم ب احترام
×
×
  • Create New...