-
Posts
151 -
Joined
-
Last visited
Everything posted by xMKHx
-
Wrong section !, you can post in scripting section and paste your codes not a downloading link ! nad Thank You !
-
try this -- Client function SureKaydet () triggerServerEvent("Freeroam:SureKaydet", localPlayer, sureVerileri, true) if sureVerileri[localPlayer] and isTimer(sureVerileri[localPlayer].timer) then killTimer(sureVerileri[localPlayer].timer) end end addEventHandler( "onClientPlayerQuit", getRootElement(), SureKaydet ) -- server function SureKaydet (sureVerileri,bosmu) outputServerLog("triggered server") local hesap = getPlayerAccount(source) if isGuestAccount(hesap) then return false end outputServerLog("not guest") local sure = 60*10 if sureVerileri[source] and sureVerileri[source].sure then sure = sureVerileri[source].sure end exports.Hesaplar:SAD(hesap, "KiralikSure", sure) outputServerLog("saved.") outputServerLog(sure) if bosmu then exports.Hesaplar:SAD(hesap, "KiralikSureBos", true) end end addEvent("Freeroam:SureKaydet", true) addEventHandler("Freeroam:SureKaydet", getRootElement(), SureKaydet)
-
Did you tried to set all mta video settings to low quality, if you didn't try it may it help you
-
Check here may this helps you
-
try this local playerName = "" local message = "" function dx () local screenW, screenH = guiGetScreenSize () dxDrawText(""..message.." Hosted by: "..playerName.."", (screenW * 0.0000) + 1, (screenH * 0.0000) + 1, (screenW * 0.4539) + 1, (screenH * 0.0260) + 1, tocolor(0, 0, 0, 255), 1.00, "default", "left", "top", false, false, false, false, false) dxDrawText(""..message.." Hosted by: "..playerName.."", screenW * 0.0000, screenH * 0.0000, screenW * 0.4539, screenH * 0.0260, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) end function info (message_) removeEventHandler ( "onClientRender", getRootElement( ), dx ) addEventHandler("onClientRender", getRootElement( ), dx ) message = message_ playerName = getPlayerName(getLocalPlayer()) end function stopinfo () removeEventHandler ( "onClientRender", getRootElement( ), dx ) end addCommandHandler("info", info) addCommandHandler("stopinfo", stopinfo)
-
Actually if you know how to use it it won't burden your server, i have made a mistake before i used a timer and i fked up the server
-
You can draw a window and buttons With guieditor ( you can find it on community ) then make functions for buttons ( i mean the numbers from 1,9 ) you can use guiGetText and guisettext and if there i☼ something wrong you can post on scripting board and we can help you
-
Script jdid nchlh yejebkom
xMKHx replied to Voltex'GNR's topic in Maghrebi Arabic / Darija / الدارجة
gg bro, f amma sv tal3eb? -
VPS Linux/Windows Gamer Servers ب 6 دولارات
xMKHx replied to Sakhr's topic in Maghrebi Arabic / Darija / الدارجة
f OVH l vps b 8dt w techry m3ah domain .ovh walla .xyz b 2dt yaany total yji 10dt yaa3ni 7keyet $3 w enty theb tbi3 l vps bark b $15 w $20 yaany tji 45dt 60dt kek, 3leh sahby ne9sin ahna -
function AntKill ( attacker , weapon , bodypart , loss ) suspect = getAccountName ( getPlayerAccount ( attacker )) victim = getAccountName ( getPlayerAccount ( source )) if (attacker == source) then return false end if ( isObjectInACLGroup ( "user." ... suspect , aclGetGroup ( "test" )) and isObjectInACLGroup ( "user." .. victim , aclGetGroup ( "test" )) ) then outputChatBox ("TEST",source,255,255,255,true) cancelEvent () end end addEventHandler (" onPlayerDamage ",root,AntKill)
-
You can use any save system from the community ! or you can link the fighting style system with mysql or sql you can add this in server side of the fighting styles script function createTable () executeSQLQuery("CREATE TABLE IF NOT EXISTS fightingstyle (account TEXT, styleID INT)") outputDebugString("CREATED TABLE fightingstyle ( account TEXT, styleID INT)", 3, 0, 255, 0) end addEventHandler("onResourceStart", resourceRoot, createTable) then add this function function isPlayerAlreadyBoughtNewFightingStyle (player) local account = getAccountName(getPlayerAccount(player)) local query = executeSQLQuery("SELECT * FROM fightingstyle WHERE account=?", account) if (query) and (#query > 0) then return true else return false end end then add this in the function when you buy or get the new fighting style function onBuyNewFightingStyle () if (isPlayerAlreadyBoughtNewFightingStyle(source) == true) then local acc = getAccountName(getPlayerAccount(source)) executeSQLQuery("UPDATE fightingstyle SET styleID=? WHERE account=?", theID, acc) else executeSQLQuery("INSERT INTO fightingstyle(account,styleID) VALUES(?,?)", acc, theID) end end
-
i'm using my phone try this function getPlayerFromPartialName(name) local name = name and name:gsub("#%x%x%x%x%x%x", ""):lower() or nil if name then for _, player in ipairs(getElementsByType("player")) do local name_ = getPlayerName(player):gsub("#%x%x%x%x%x%x", ""):lower() if name_:find(name, 1, true) then return player end end end end function findPlayer (player, cmd, target) local target_ = getPlayerFromPartialName ( target ) local targetN = getPlayerName(target_) if cmd == "find" then if target_ then createBlipAttachedTo ( getPlayerFromName(targetN), 52 ) else outputChatBox("Player not found !", player, 255, 0, 0) end end end addCommandHandler("find", findPlayer)
-
try this i'm using my phone i didn't test it local car = getPedOccupiedVehicle ( getLocalPlayer() ) local carfullhp = math.floor(getElementHealth(car)/10) local carhp = carfullhp - 25 dxDrawRectangle(screenW * 0.7760, screenH * 0.8796, screenW * 0.1083/100*carhp, screenH * 0.0278, tocolor(171, 100, 17, 207), false)
-
What are we looking for ? We're looking for staffs to manage the server and controle it and help players ... Requirements: - Good English skills - Able to handle the duty Where you can apply ? Here is our Forum Link: UDCMTA Good Luck