Jump to content

nxFairlywell

Members
  • Posts

    1,849
  • Joined

  • Last visited

  • Days Won

    6

nxFairlywell last won the day on July 29 2021

nxFairlywell had the most liked content!

6 Followers

About nxFairlywell

  • Birthday 23/05/1998

Details

  • Gang
    Sicilia
  • Location
    My House
  • Occupation
    ...............

Recent Profile Visitors

3,714 profile views

nxFairlywell's Achievements

Jacker

Jacker (39/54)

175

Reputation

  1. مافيه اكواد محدده عشان نعرف المشكلة وزي ماقلت انت انو عندك قيم مود كامل
  2. I don't know how they do it, But I suggest you to change the "walk_player" animation. This is the default animation for the walk
  3. اكواد السيرفر حطها اخر شي بملف السيرفر وكذلك اكواد الكلينت ماراح تخرب عليك نهائياً بس عدل المتغيرات
  4. "onPlayerLogout" -- عند تسجيل الخروج من الحساب "onPlayerQuit" -- عند مغادرة اللاعب للسيرفر
  5. addEventHandler("onPlayerJoin",root,function() setPlayerWantedLevel(source,0); end)
  6. اقل شي عبر الاكواد اللي كتبتها لك وحطها في الكود حقك لول ?
  7. يعني اللاعب خرج كيف تبي تمسح نجومه وهو اصلاً مافيه لاعب
  8. Server -- Server addEventHandler("onResourceStart",resourceRoot, function() executeSQLQuery("CREATE TABLE IF NOT EXISTS BAN_LIST (PlayerSerial TEXT,ResponsibleSerial TEXT)"); end ) function onPlayerBanned(responsible) local player = source; local playerSerial = getPlayerSerial(player); local responsibleSerial = getPlayerSerial(responsible); local SQL = executeSQLQuery("SELECT * FROM BAN_LIST WHERE PlayerSerial=?",playerSerial); if SQL[1] == nil then executeSQLQuery("INSERT INTO BAN_LIST (PlayerSerial,ResponsibleSerial) VALUES(?,?)",playerSerial,responsibleSerial); local SQL = executeSQLQuery("SELECT * FROM BAN_LIST WHERE PlayerSerial=?",playerSerial); if SQL[1] ~= nil and SQL[1].PlayerSerial == playerSerial then triggerClientEvent(player,"onClientPlayerBanned",player,responsible); end else outputChatBox("هذا اللاعب في قائمة الحظر بالفعل !",responsible); end end addEvent("onPlayerBanned",true); addEventHandler("onPlayerBanned",root,onPlayerBanned); addEvent("OnClientStart",true); addEventHandler("OnClientStart",root,function() local playerSerial = getPlayerSerial(source); local SQL = executeSQLQuery("SELECT * FROM BAN_LIST WHERE PlayerSerial=?",playerSerial); if SQL[1] == nil then triggerClientEvent(source,"OnClientStart",source); else triggerClientEvent(source,"OnClientStart",source,true); end end) Client BanPlayer(player): player : اللاعب اللي تبي تحظره , طبعاً انت تحدد طريقة اختيار اللاعب انا ماحددت طريقة انا حطيت الفنكشن بس -- client local key1 = "F2"; -- زر اللوحة الاولى local key2 = "F3"; -- زر اللوحة الثانية local window1 = var1; -- الى متغير اللوحة الاولى var1 غير local window2 = var2; -- الى متغير اللوحة الثانية var2 غير function OpenFirstWindow() if not guiGetVisible(window1) then guiSetVisible(window1,true); showCursor(true); else guiSetVisible(window1,false); showCursor(false); end end function OpenSecondWindow() if not guiGetVisible(window2) then guiSetVisible(window2,true); showCursor(true); else guiSetVisible(window2,false); showCursor(false); end end addEventHandler("onClientResourceStart",resourceRoot,function() triggerServerEvent("OnClientStart",localPlayer); end); function BanPlayer(player) if player and isElement(player) and getElementType(player)=="player" then local responsible = localPlayer; triggerServerEvent("onPlayerBanned",player,responsible); return true; end return false; end function onClientPlayerBanned(responsible) outputChatBox("لقد تم حظرك من قبل "..getPlayerName(responsible):gsub("#%x%x%x%x%x%x",""),244,14,14); unbindKey("زر اللوحة المحظورة","down",OpenFirstWindow); bindKey("زر اللوحة الثانية","down",OpenSecondWindow); guiSetVisible(window1,false); showCursor(false); end addEvent("onClientPlayerBanned",true); addEventHandler("onClientPlayerBanned",root,onClientPlayerBanned); addEvent("OnClientStart",true); addEventHandler("OnClientStart",root,function(isBanned) if not isBanned then bindKey(key1,"down",OpenFirstWindow); else bindKey(key2,"down",OpenSecondWindow); end end)
  9. تعلم اول شي وبعدين تقدر تسوي كل شي هذا السكربت راح ياخذ منك مجهود وانصحك تنسى موضوعه لين تتعلم اكثر
  10. Actually you don't need to get the marker from server-side
  11. That will fix the problem ?
  12. Cylinder1 = createMarker(3139.8, -3254.3, 123.22222, "cylinder", 1.0, 0, 255, 255, 255) function TEST(playerhit) if source == Cylinder1 then if playerhit and getElementType(playerhit)=="player" then outputChatBox("U hit marker", root) end end end addEventHandler("onMarkerHit", root, TEST)
  13. Remove the if-statement "isElementWithinMarker"
×
×
  • Create New...