
SycroX
Members-
Posts
2,141 -
Joined
-
Last visited
-
Days Won
15
Everything posted by SycroX
-
حاول و نساعدك... setTimer getElementData split givePlayerMoney
-
مشكور حليتها امس
-
outputChatBox("5A9: "..getPlayerName(source)..": "..message.." . To : "..getPlayerName(plr),source,255,0,0,true) بدلها بـ outputChatBox("5A9: "..getPlayerName(source)..": "..message.." . To : "..getPlayerName(plr),v,255,0,0,true)
-
السلام عليكم اليوم واجهني شي غريب جدا في الدي بق خطاء اول مره اشوفو في حياتي و صراحه مو فاهم وش يقول الخطاء ( برمجيا و ليس حرفيا ) دي صوره للخطاء : + الي مو فاهم كلمه ambiguous = غامض
-
local _dxDrawRectangle = dxDrawRectangle local _dxDrawText = dxDrawText local sWidth, sHeight = guiGetScreenSize() local resolutionX, resolutionY = 1280, 800 function dxDrawText( text,posX,posY,right,bottom,color,scale,mixed_font,alignX,alignY,clip,wordBreak,postGUI,kk,gg ) return _dxDrawText(tostring( text ), ( posX/resolutionX )*sWidth, ( posY/resolutionY )*sHeight, ( right/resolutionX )*sWidth, ( bottom/resolutionY)*sHeight, color, ( sWidth/resolutionX )*scale, mixed_font, alignX, alignY, clip, wordBreak, postGUI, kk, gg) end function dxDrawRectangle( posX, posY, width, height,color,postGUI ) return _dxDrawRectangle(( posX/resolutionX )*sWidth, ( posY/resolutionY )*sHeight, ( width/resolutionX )*sWidth, ( height/resolutionY )*sHeight, color, postGUI) end ضيف دول للكلنت سايد
-
function giveMoney(sender,_, name, amount) if not name or not amount then outputChatBox("Usage: #FFFFFF/givemoney [player name] [amount]", sender, 255, 0, 0, true) return end local receiver = getPlayerFromName(name) local sendername = getPlayerName(sender) local sendermoney = getPlayerMoney(sender) local amount = tonumber(amount) if not receiver then outputChatBox("Couldn't find a player with the name #FFFFFF("..name..").", sender, 255, 0, 0, true) return end if receiver == sender then outputChatBox("You can't give money to yourself.", sender, 255, 0, 0) return end if not amount or tostring(amount):find("-") then outputChatBox("Please enter a valid value.", sender, 255, 0, 0) return end if getPlayerMoney(sender) >= amount then takePlayerMoney(sender, amount) givePlayerMoney(receiver, amount) outputChatBox("You gave #FFFFFF"..name.." #00FF00$"..tostring(amount)..".", sender, 0, 255, 0, true) outputChatBox(""..sendername.." #00FF00gave you $"..tostring(amount)..".", receiver, 255, 255, 255, true) else outputChatBox("You don't have $"..tostring(amount)..".", sender, 255, 0, 0, true) end end addCommandHandler("givemoney", giveMoney)
-
interpolateBetween
-
قصدو dbConnect و الثانيه الي هي executeSQLQuery
-
https://community.multitheftauto.com/index.php?p=resources&s=details&id=9585
-
اها فهمتك معلش , فكرتها تجيب كل اللاعبين و ترتبهم
-
يب بس في 2 طريقه : 1 - getPlayerName(g[i].player):gsub("#%x%x%x%x%x%x", "") 2 - string.gsub(getPlayerName(g[i].player), "#%x%x%x%x%x%x", "")
-
https://up.top4top.net/downloadf-761t655u1-zip.htm https://up.top4top.net/downloadf-761t655u1-zip.html https://up.top4top.net/downloadf-761t655u1-zip.html https://up.top4top.net/downloadf-761t655u1-zip.html https://up.top4top.net/downloadf-761t655u1-zip.html https://up.top4top.net/downloadf-761t655u1-zip.html https://up.top4top.net/downloadf-761t655u1-zip.html -___________________________________________-
-
تستهبل ؟؟؟ لسا مجربو بالسيرفر المحلي حقي الكود شغال من الأول بس انت الي شكلك مو معرف السيرفر سايد بالميتا او مسوي شي غلط و قاعد تضيع وقتنا علي الفاضي خد سويت لك اللمود https://up.top4top.net/downloadf-761t655u1-zip.html
-
setTimer(function() guiGridListClear( TimeList ) local g = getPlayersSortByaTime() for i = 1, 30 do local aRow = guiGridListAddRow( TimeList ) if g[i]then guiGridListSetItemText( TimeList, aRow, 1, i ..'-', false, false ) guiGridListSetItemText( TimeList, aRow, 2, getPlayerName(g[i].player):gsub("#%x%x%x%x%x%x", ""), false, false ) guiGridListSetItemText( TimeList, aRow, 3, convertNumber(g[i].Time), false, false ) guiSetFont ( TimeList, "default-bold" ) end end end, 1000, 0)
-
GUIEditor = { gridlist = {}, window = {}, label = {}, edit = {} } ------ function loadPlayers() for _,player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, getPlayerName(player), false, false) end end ------ addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(377, 203, 620, 434, ".:[ نظام توزيع الفلوس v2.5 | طرب تآيم ]:.", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible( GUIEditor.window[1], false ) GUIEditor.gridlist[1] = guiCreateGridList(9, 63, 350, 348, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "#اللاعبين", 0.9) aP = guiCreateButton(407, 253, 147, 41, "[ Give Player ]", false, GUIEditor.window[1]) guiSetProperty(aP, "NormalTextColour", "FFFD8300") aG = guiCreateButton(407, 162, 147, 41, "[ Give All ]", false, GUIEditor.window[1]) guiSetProperty(aG, "NormalTextColour", "FFEFFE00") Edit = guiCreateEdit(383, 387, 228, 29, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(512, 360, 67, 17, "* المبلغ : ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 0, 220, 252) GUIEditor.label[2] = guiCreateLabel(28, 32, 182, 15, "Created By FaNaaN | 6rB Time ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-small") guiLabelSetColor(GUIEditor.label[2], 41, 251, 0) guiLabelSetHorizontalAlign(GUIEditor.label[2], "left", true) GUIEditor.label[3] = guiCreateLabel(383, 48, 187, 15, "مرحبا ً بك في لوحةة توزيع الفلوس !", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 0, 248, 250) GUIEditor.label[4] = guiCreateLabel(383, 93, 187, 15, "قم بكتآبةة المبلغ في إيديت \"الفراغ\"", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 0, 248, 250) end ) addCommandHandler("systemGM", function() guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor.window[1])) loadPlayers() end ) addEventHandler("onClientGUIClick", root, function() if source == aG then local Amount = guiGetText(Edit) triggerServerEvent("MoneyAction", localPlayer, "GiveAll", {Amount}) elseif source == aP then local Amount = guiGetText(Edit) local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if sel and sel ~= -1 then local playerName = guiGridListGetItemText(GUIEditor.gridlist[1] , sel, 1) triggerServerEvent("MoneyAction", localPlayer, "GivePlayer", {playerName, Amount}) else outputChatBox("* Please select a player first",255,0,0,true) end end end ) addEvent("MoneyAction", true) addEventHandler("MoneyAction", root, function(event, data) if event == "GivePlayer" then local player = getPlayerFromName(data[1]) if player and isElement(player) then givePlayerMoney(player, tonumber(data[2])) outputChatBox("["..getPlayerName(source).."] has gived you [ $"..data[2].." ]", player, 0, 255, 0, true) outputChatBox("you've gived ( "..data[1].." ) Money : $"..data[2].."", source, 0, 255, 0, true) end elseif event == "GiveAll" then for _,player in ipairs(getElementsByType("player")) do givePlayerMoney(player, tonumber(data[1])) outputChatBox("($"..data[1]..") بأعطاء جميع اللاعبين مبلغ ["..getPlayerName(source).."] قام اللاعب", player, 0, 255, 0, true) playSoundFrontEnd(player, 44) end end end )
-
وش دخل الدي بق الي بالصوره بي عدم التوزيع علي الكل , الدي بق الي بالصوره كان مشكلتو اني كنت كاتب فقط اسم المتغير غلط ما له اي علاقه بالتوزيع علي الكل انت متاكد انك ضايف ذا addEvent("MoneyAction", true) addEventHandler("MoneyAction", root, function(event, data) if event == "GivePlayer" then local player = getPlayerFromName(data[1]) if player and isElement(player) then givePlayerMoney(player, tonumber(data[2])) outputChatBox("["..getPlayerName(source).."] has gived you [ $"..data[2].." ]", player, 0, 255, 0, true) outputChatBox("you've gived ( "..data[1].." ) Money : $"..data[2].."", source, 0, 255, 0, true) end elseif event == "GiveAll" then for _,player in ipairs(getElementsByType("player")) do givePlayerMoney(player, tonumber(data[1])) outputChatBox("($"..aMoney..") بأعطاء جميع اللاعبين مبلغ ["..getPlayerName(source).."] قام اللاعب", player, 0, 255, 0, true) playSoundFrontEnd(player, 44) end end end ) للسيرفر سايد ؟؟
-
روح لفنكنش loadPlayers بعدين تشوف getPlayerName(p) بدلها خلها getPlayerName(player)
-
وش يقولك الدي بق + وش هوا سطر 3 num ليه ما تخلي بدل #getElementsByType("player") تكون افضل صح ؟