-
Posts
1,849 -
Joined
-
Last visited
-
Days Won
6
nxFairlywell's Achievements
Jacker (39/54)
175
Reputation
-
nxFairlywell changed their profile photo
-
nxFairlywell started following فاّرس
-
مافيه اكواد محدده عشان نعرف المشكلة وزي ماقلت انت انو عندك قيم مود كامل
-
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
-
اكواد السيرفر حطها اخر شي بملف السيرفر وكذلك اكواد الكلينت ماراح تخرب عليك نهائياً بس عدل المتغيرات
-
"onPlayerLogout" -- عند تسجيل الخروج من الحساب "onPlayerQuit" -- عند مغادرة اللاعب للسيرفر
-
addEventHandler("onPlayerJoin",root,function() setPlayerWantedLevel(source,0); end)
-
اقل شي عبر الاكواد اللي كتبتها لك وحطها في الكود حقك لول ?
-
يعني اللاعب خرج كيف تبي تمسح نجومه وهو اصلاً مافيه لاعب
-
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)
-
nxFairlywell started following TAPL
-
nxFairlywell started following Max+
-
nxFairlywell started following #DRAGON!FIRE
-
That will fix the problem ?
-
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)
-
Remove the if-statement "isElementWithinMarker"