Jump to content

kamel10

Members
  • Posts

    317
  • Joined

  • Last visited

Everything posted by kamel10

  1. وين المشكلة مافي مشكلة مع القيم مود الاصلي حق العبة مابات تشتغل عادي
  2. عندي مشكلة في مود القروبات ما يسوي قروب كلينت function makeGroup() if (not guiGetEnabled(createGroupEdit)) then exports.guimessages:sendClientMessage ("You must leave your current group first", 255, 0, 0, "default-bold", true, 0.15) return end local name = guiGetText(createGroupEdit) local name = string.gsub(name, " ", "_") if (name and name ~= "" and name:len() > 2) then money = getPlayerMoney (source) if (money < 0) then exports.guimessages:sendClientMessage ("You Must Have 1,000,000$ To Create Your Group !",225,0,0) else takePlayerMoney(0) triggerServerEvent("groupSystem.attemptMakeGroup", root, name) end end end سيرفر function attemptMakeGroup(name) if (isGuestAccount(getPlayerAccount(client))) then return end if (groupTable[name]) then exports.guimessages:sendClientMessage ("There is already a group with this name", client, 255, 0, 0) return end if (#name > 20) then exports.guimessages:sendClientMessage ("Max group name is 20 characters", client, 255, 0, 0) return end if (not getPlayerGroup(client) or getPlayerGroup(client) == "None" or getPlayerGroup == "nil") then local date, time = getTime() local date = date.." - "..time createGroup(name, client, date) setGroup(client, name, date, "Founder") exports.guimessages:sendClientMessage ("Done Create Your Group '"..name.."'", client, 0, 255, 0) end end addEvent("groupSystem.attemptMakeGroup", true) addEventHandler("groupSystem.attemptMakeGroup", root, attemptMakeGroup)
  3. عندي مشكلة في قيم مود ريس دة https://community.multitheftauto.com/ind ... ls&id=6008 لما اركبه واشغله ما يختار الماب يبقى مكتوب تحت على اليسار random والماب ما تبدأ
  4. غير outputChatbox ب exports.topbarchat:sendClientMessage
  5. ابي اسوي في التاب Bank يعني كم معه فلوس بالبنك وهذا المنت داتا البنك "Bank"
  6. ابي مود اسحب بيه كل الفلوس حتى الغير متواجدين
  7. ابي كلمة لما اكتب reset + اسم اللاعب اسحب كل فلوسه
  8. ابي كود يوم يدخل اللاعب الماركر ويكتب كلمة في اف8 يدخله في بيت
  9. addEventHandler("onMarkerHit",root, function (player) if ( source == mar ) then if getPlayerTeam and getTeamName ( getPlayerTeam ( player ) ) == 'No Team' then if getElementType(player) == "player" then if not isPedInVehicle then local x,y,z = getElementPosition(player) local data = getElementData(mar,"num") local data = tonumber(data) destroyElement(mar) destroyElement(ob) destroyElement(bl) killTimer(time) setElementData(player,"bag",true) atBag = createObject(1210,x,y,z) setElementData(atBag,"num",data) exports.bone_attach:attachElementToBone(atBag,player,12,0,0.05,0.27,0,180,0) bli = createBlipAttachedTo(player,17) attachedMarker = createMarker(x, y, z, "corona", 1, 255, 0, 255, 150) attachElements(attachedMarker, player, 0, 0, 0) exports.guimessages:sendClientMessage("* #ffffff[ #ff0000" .. getPlayerName(player) .. "#ffffff ]#0069c7 Has Take The Bag",root,0,255,0,true) marker = createMarker(mark[data][1],mark[data][2],mark[data][3],"cylinder",1.5,255,255,0,255,player) marBli = createBlipAttachedTo(marker,12,2,255,0,0,255,0,99999.0,player) end end end end ) ماكس تقصد كدة صح ؟
  10. مسويه يعني لما ما يكون راكب في السيارة لما يضغط انتر مايركب مسويها بس في مشكلة لما يروح فوق الشنطة بالسيارة ياخذها
  11. ابي اللاعب ما يقدر يا خذ الشنطة بالسيارة يعني ما ابيه لما يكون في السيارة ويروح فوقها يخذها addEventHandler("onMarkerHit",root, function (player) if ( source == mar ) then if getPlayerTeam and getTeamName ( getPlayerTeam ( player ) ) == 'No Team' then if getElementType(player) == "player" then local x,y,z = getElementPosition(player) local data = getElementData(mar,"num") local data = tonumber(data) destroyElement(mar) destroyElement(ob) destroyElement(bl) killTimer(time) setElementData(player,"bag",true) atBag = createObject(1210,x,y,z) setElementData(atBag,"num",data) exports.bone_attach:attachElementToBone(atBag,player,12,0,0.05,0.27,0,180,0) bli = createBlipAttachedTo(player,17) attachedMarker = createMarker(x, y, z, "corona", 1, 255, 0, 255, 150) attachElements(attachedMarker, player, 0, 0, 0) exports.guimessages:sendClientMessage("* #ffffff[ #ff0000" .. getPlayerName(player) .. "#ffffff ]#0069c7 Has Take The Bag",root,0,255,0,true) marker = createMarker(mark[data][1],mark[data][2],mark[data][3],"cylinder",1.5,255,255,0,255,player) marBli = createBlipAttachedTo(marker,12,2,255,0,0,255,0,99999.0,player) end end end end )
  12. http://www.gulfup.com/?t8Dzjh
  13. طيب انا ابي اخلي في الكلينت لما ابي اخليه يطلع فوق اكتب outputClient مو outputServer
  14. انا عندي مود التوب شات ركبته و كل شيئ تمام سيرفر ------------------------------------------ -- TopBarChat -- ------------------------------------------ -- Developer: Braydon Davis -- -- File: s.lua -- -- Copyright 2013 (C) Braydon Davis -- -- All rights reserved. -- ------------------------------------------ sec = {{{{{{},{},{},{}}}}}} -- ------------------------------------------ local TheResourceName = getResourceName ( getThisResource ( ) ) function outputServer ( who, msg, r, g, b, pos, time ) if ( msg and who ) then if ( isElement ( who ) ) then triggerClientEvent ( who, TheResourceName..":outputServer", who, msg, r, g, b, pos, time ) return true else return false end else return false end end addCommandHandler ( "runtest", function ( ) for i=1,7 do setTimer ( function ( i ) outputServer ( "Indexing "..i.."...", root, math.random ( 20, 255 ), math.random ( 20, 255 ), math.random ( 20, 255 ), true ) outputServer ( "Indexing "..i.."...", root, math.random ( 20, 255 ), math.random ( 20, 255 ), math.random ( 20, 255 ), false ) end, i*1000, 1, i ) end end ) كلينت ------------------------------------------ sec = {{{{{{},{},{},{}}}}}} -- ------------------------------------------ local maxMessages = 20; -- The max messages that will show (on each bar) local DefaultTime = 8; -- The max time each message will show if time isn't defined. ---------- DON'T EDIT BELOW HERE UNLESS YOU KNOW WHAT YOUR DOING! ---------- local sx, sy = guiGetScreenSize ( ) local DefaultPos = true; -- Top bar variables local timer_top = { } local timer_btm = { } -- Bottom bar variables local messages_top = { } local messages_btm = { } function outputClient ( msg, r, g, b, pos, time ) -- Msg: String -- R: Int (0-255) -- G: Int (0-255) -- B: Int (0-255) -- Pos: Boolean -- Time: Int local r, g, b = r, g, b or 255, 255, 255 if ( pos == nil ) then pos = DefaultPos end -- Check for pos if ( time == nil ) then time = DefaultTime end -- Check for time local GsubedMessage = msg:gsub ( "#%x%x%x%x%x%x", "" ) if ( pos == true ) then -- if ( not isTimer ( timer_top[GsubedMessage] ) ) then local c_messages = messages_top; if ( #messages_top >= maxMessages ) then local c_messages = messages_top; messages_top = { } for i,v in ipairs ( c_messages ) do if ( i ~= 1 ) then table.insert ( messages_top, { v[1], v[2], v[3], v[4] } ) end end end table.insert ( messages_top, { msg, r, g, b } ) timer_top[GsubedMessage] = setTimer ( function ( msg ) for i,v in ipairs ( messages_top ) do if ( v[1] == msg ) then table.remove ( messages_top, i ) break end end end, time*1000, 1, msg ) return_value = true -- else return_value = false end else if not ( isTimer ( timer_btm[GsubedMessage] ) ) then local c_messages = messages_btm; if ( #messages_btm >= maxMessages ) then local c_messages = messages_btm; messages_btm = { } for i,v in ipairs ( c_messages ) do if ( i ~= 1 ) then table.insert ( messages_btm, { v[1], v[2], v[3], v[4] } ) end end end table.insert ( messages_btm, { msg, r, g, b } ) timer_btm[GsubedMessage] = setTimer ( function ( msg ) for i,v in ipairs ( messages_btm ) do if ( v[1] == msg ) then table.remove ( messages_btm, i ) break end end end, time*1000, 1, msg ) return_value = true else return_value = false end end return return_value or false end local TheResourceName = getResourceName ( getThisResource ( ) ) addEvent ( TheResourceName..":outputClient", true ) addEventHandler ( TheResourceName..":outputClient", root, sendClientMessage ) function dxDrawNotificationBar ( ) for i,v in ipairs ( messages_top ) do local i = i - 1 -- Because tables start at 1 -.- if ( i == #messages_top-1 ) then dxDrawRectangle ( ( sx/2-530/2 ), i*25, 530, 25, tocolor ( 0, 0, 0, 100 ) ) end dxDrawRectangle ( ( sx/2-530/2 ), i*25, 530, 25, tocolor ( 0, 0, 0, 120 ) ) dxDrawText ( v[1], 0, i*25+5, sx, 25, tocolor ( v[2], v[3], v[4], 255 ), 1, "default-bold", "center", "top", true, false, false, true ) end for i,v in pairs ( messages_btm ) do local i = i - 1 local y = i * 25+25 if ( i+1 == #messages_btm ) then dxDrawRectangle ( ( sx/2-530/2 ), (sy-y), 530, 25, tocolor ( 0, 0, 0, 120 ) ) end dxDrawRectangle ( ( sx/2-530/2 ), (sy-y), 530, 25, tocolor ( 0, 0, 0, 120 ) ) dxDrawText ( v[1], 0, (sy-y+5), sx, sy, tocolor ( v[2], v[3], v[4], 255 ), 1, "default-bold", "center", "top", true, false, false, true ) end end addEventHandler ( "onClientRender", root, dxDrawNotificationBar ) المشكلة هي ما يبي يشتغل مع المود دة addCommandHandler ( "chat", function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then local name = getPlayerName(thePlayer) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) outputChatBox ( " ", getRootElement(), 255, 0, 0, true ) exports["guimessages"]:outputServer (getRootElement(), "#FF0000|~|~| #00FF00The #00FF00Admin #FF0000" .. name .. " #FF0000 Has#00FF00 Cleared#FF0000 The#00FF00 Chat #FF0000|~|~|", 255, 0, 0, true ) end end ) يقولي في دوبيق server triggered clientside event GuiMessages:outputServer but event not added to client sided
  15. الوحش ابيه يشتغل على مودات جراند
  16. وفي الكليت ابي اغير sendClientMessage ب outputClient Edite 2 خلاص اغير sendClientMessage ب outputClient للقفل ..
  17. طيب ابي اغير sendClientMessage ب outputServer
  18. عندي مود التوب بار شات ولما اسوي اكسبورت يصير كدة exports.TopBarChat:sendClientMessage("#FDD017[Admin] #FF0000"..getPlayerName( player ).." #00FF00Has Give All Players #FF0000"..tonumber ( Money ).."$", root, 0, 255, 0 ) شوفو وين روت ابي اخليها كدة exports.TopBarChat:sendClientMessage(root, "#FDD017[Admin] #FF0000"..getPlayerName( player ).." #00FF00Has Give All Players #FF0000"..tonumber ( Money ).."$", 0, 255, 0 ) شوفو الحين وين الروت . وابي اغير sendClientMessage ب outputServer وفي الكلينت ب outputClient وهذا مود TopBarChat Server ------------------------------------------ -- TopBarChat -- ------------------------------------------ -- Developer: Braydon Davis -- -- File: s.lua -- -- Copyright 2013 (C) Braydon Davis -- -- All rights reserved. -- ------------------------------------------ sec = {{{{{{},{},{},{}}}}}} -- ------------------------------------------ local TheResourceName = getResourceName ( getThisResource ( ) ) function sendClientMessage ( msg, who, r, g, b, pos, time ) if ( msg and who ) then if ( isElement ( who ) ) then triggerClientEvent ( who, TheResourceName..":sendClientMessage", who, msg, r, g, b, pos, time ) return true else return false end else return false end end addCommandHandler ( "runtest", function ( ) for i=1,7 do setTimer ( function ( i ) sendClientMessage ( "Indexing "..i.."...", root, math.random ( 20, 255 ), math.random ( 20, 255 ), math.random ( 20, 255 ), true ) sendClientMessage ( "Indexing "..i.."...", root, math.random ( 20, 255 ), math.random ( 20, 255 ), math.random ( 20, 255 ), false ) end, i*1000, 1, i ) end end ) Client ------------------------------------------ sec = {{{{{{},{},{},{}}}}}} -- ------------------------------------------ local maxMessages = 20; -- The max messages that will show (on each bar) local DefaultTime = 8; -- The max time each message will show if time isn't defined. ---------- DON'T EDIT BELOW HERE UNLESS YOU KNOW WHAT YOUR DOING! ---------- local sx, sy = guiGetScreenSize ( ) local DefaultPos = true; -- Top bar variables local timer_top = { } local timer_btm = { } -- Bottom bar variables local messages_top = { } local messages_btm = { } function sendClientMessage ( msg, r, g, b, pos, time ) -- Msg: String -- R: Int (0-255) -- G: Int (0-255) -- B: Int (0-255) -- Pos: Boolean -- Time: Int local r, g, b = r, g, b or 255, 255, 255 if ( pos == nil ) then pos = DefaultPos end -- Check for pos if ( time == nil ) then time = DefaultTime end -- Check for time local GsubedMessage = msg:gsub ( "#%x%x%x%x%x%x", "" ) if ( pos == true ) then -- if ( not isTimer ( timer_top[GsubedMessage] ) ) then local c_messages = messages_top; if ( #messages_top >= maxMessages ) then local c_messages = messages_top; messages_top = { } for i,v in ipairs ( c_messages ) do if ( i ~= 1 ) then table.insert ( messages_top, { v[1], v[2], v[3], v[4] } ) end end end table.insert ( messages_top, { msg, r, g, b } ) timer_top[GsubedMessage] = setTimer ( function ( msg ) for i,v in ipairs ( messages_top ) do if ( v[1] == msg ) then table.remove ( messages_top, i ) break end end end, time*1000, 1, msg ) return_value = true -- else return_value = false end else if not ( isTimer ( timer_btm[GsubedMessage] ) ) then local c_messages = messages_btm; if ( #messages_btm >= maxMessages ) then local c_messages = messages_btm; messages_btm = { } for i,v in ipairs ( c_messages ) do if ( i ~= 1 ) then table.insert ( messages_btm, { v[1], v[2], v[3], v[4] } ) end end end table.insert ( messages_btm, { msg, r, g, b } ) timer_btm[GsubedMessage] = setTimer ( function ( msg ) for i,v in ipairs ( messages_btm ) do if ( v[1] == msg ) then table.remove ( messages_btm, i ) break end end end, time*1000, 1, msg ) return_value = true else return_value = false end end return return_value or false end local TheResourceName = getResourceName ( getThisResource ( ) ) addEvent ( TheResourceName..":sendClientMessage", true ) addEventHandler ( TheResourceName..":sendClientMessage", root, sendClientMessage ) function dxDrawNotificationBar ( ) for i,v in ipairs ( messages_top ) do local i = i - 1 -- Because tables start at 1 -.- if ( i == #messages_top-1 ) then dxDrawRectangle ( ( sx/2-530/2 ), i*25, 530, 25, tocolor ( 0, 0, 0, 100 ) ) end dxDrawRectangle ( ( sx/2-530/2 ), i*25, 530, 25, tocolor ( 0, 0, 0, 120 ) ) dxDrawText ( v[1], 0, i*25+5, sx, 25, tocolor ( v[2], v[3], v[4], 255 ), 1, "default-bold", "center", "top", true, false, false, true ) end for i,v in pairs ( messages_btm ) do local i = i - 1 local y = i * 25+25 if ( i+1 == #messages_btm ) then dxDrawRectangle ( ( sx/2-530/2 ), (sy-y), 530, 25, tocolor ( 0, 0, 0, 120 ) ) end dxDrawRectangle ( ( sx/2-530/2 ), (sy-y), 530, 25, tocolor ( 0, 0, 0, 120 ) ) dxDrawText ( v[1], 0, (sy-y+5), sx, sy, tocolor ( v[2], v[3], v[4], 255 ), 1, "default-bold", "center", "top", true, false, false, true ) end end addEventHandler ( "onClientRender", root, dxDrawNotificationBar )
×
×
  • Create New...