Jump to content

3NAD

Members
  • Posts

    1,992
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by 3NAD

  1. -- Client showCursor ( true ) addEventHandler( "onClientRender", root, function ( ) rectangle = dxDrawRectangle(0, 0, 1024, 768, tocolor(87, 32, 188, 255), true) dxDrawText("F.Q Servers", 304, 0, 719, 94, tocolor(220, 0, 0, 255), 3.00, "pricedown", "left", "top", false, false, true, false, false) dxDrawImage(10, 111, 375, 525, "images/drift.png", 12, 0, 0, tocolor(215, 172, 2, 255), true) dxDrawImage(399, 158, 310, 460, "images/Gang.png", 12, 0, 0, tocolor(215, 172, 2, 255), true) dxDrawImage(750, 156, 258, 472, "images/zombie.png", 12, 0, 0, tocolor(215, 172, 2, 255), true) dxDrawImage(26, 620, 240, 85, "images/drift1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(360, 620, 240, 85, "images/Gang1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(723, 620, 240, 85, "images/zombie1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) end ) addEventHandler ( "onClientCursorMove", root, function ( _, __, x, y ) if not rectangle then return end if x >= 10 and y >= 111 and x <= (10+375) and y <= (111+525) then mouse = "drift" elseif x >= 399 and y >= 158 and x <= (399+310) and y <= (158+460) then mouse = "Gang" elseif x >= 750 and y >= 156 and x <= (750+258) and y <= (156+472) then mouse = "zombie" elseif x >= 26 and y >= 620 and x <= (26+240) and y <= (620+85) then mouse = "drift1" elseif x >= 360 and y >= 620 and x <= (360+240) and y <= (620+85) then mouse = "Gang1" elseif x >= 723 and y >= 620 and x <= (723+240) and y <= (620+85) then mouse = "zombie1" else if mouse then mouse = nil end end end ) addEventHandler ( "onClientClick", root, function ( button, state, x, y ) if button == "left" and state == "down" then if rectangle and mouse then triggerServerEvent ( "onRedirectPlayer", localPlayer, mouse ) end end end ) -- Server Servers = { ["drift"] = { "5.231.54.172", "44444" }; ["Gang"] = { "5.231.54.172", "55555" }; ["zombie"] = { "5.231.54.172", "44443" }; }; addEvent ( "onRedirectPlayer", true ) addEventHandler ( "onRedirectPlayer", root, function ( name ) if Servers[name] then redirectPlayer ( source, Servers[name][1], Servers[name][2] ); end end )
  2. https://wiki.multitheftauto.com/wiki/Tem ... _Functions .للصفحه وضيف صفحتك edit سوي تسلم مب انت مسوي ذي الوظيفة كيف ماتعرف https://wiki.multitheftauto.com/wiki/SetAccountName انا ابي اضيفها للقائمة مو اسوي صفحة جديدة !
  3. addCommandHandler ( "mygroups", function ( p ) local groups = getPlayerAllGroups ( p ) if groups then outputChatBox ( getPlayerName ( p ).. " [ "..groups.." ].", root, 255, 255, 0, true ) end end ) ؟ Useful Functions بسألك كيف اضفت الصفحة بقائمة
  4. إن لم اكن مخطئ فالإصدار 1.0 وصل لنسخة 1.0.5 ثم اصبح 1.1
  5. omg الجوال بس ؟ اسعارهم نار شوف الشركات الثانية نصف السعر هذي مواصفات 30 دولار !؟ لأن البورت 1 غيغا لو بتاخذ لك خادم بورت 100 ميغا راح تلاحظ السعر رخيص جداً
  6. createTeam -- اصنع التيم setPlayerTeam -- بعدين دخله و طلعه بهالكود
  7. عندك طريقة اللي هي لمن يدخل الماركر يصير بتيم خاص حق المايك ولمن يطلع من الماركر يشيله من التيم وماراح يسمعونه الا اللي في التيم
  8. لم يتم التجربة -- Server Side local marker = createMarker ( .... ) addEventHandler ( "onMarkerHit", marker, function ( player ) if type ( player ) == "player" then if isPlayerVoiceMuted ( player ) then setPlayerVoiceMuted ( player, false ) end end end, false ) addEventHandler ( "onMarkerLeave", marker, function ( player ) if type ( player ) == "player" then if not isPlayerVoiceMuted ( player ) then setPlayerVoiceMuted ( player, true ) end end end, false ) isPlayerVoiceMuted = function ( player ) if player then if type ( player ) == "player" then return voice:isPlayerVoiceMuted ( player ) end end return false end setPlayerVoiceMuted = function ( player, muted ) if player then if type ( player ) == "player" then return voice:setPlayerVoiceMuted ( player, muted ) end end return false end addEventHandler ( "onPlayerJoin", root, function ( ) setPlayerVoiceMuted ( source, true ) end ) addEventHandler ( "onResourceStart", resourceRoot, function ( rss ) for i, v in ipairs ( getElementsByType ( "player" ) ) do setPlayerVoiceMuted ( v, true ) end voice = exports.voice type = getElementType end ) voice شغل مود
  9. لو عندك اكثر من كلمة وتبي تاخذ وحدة عشوائياً تستخدم ذا
  10. لم يتم التجربة -- Client Side Serials = { ["FE90f88f713f0798f0fS1f1f13f"] = "ALI"; -- ["السيريال"] = "x الإسم"; }; checkPlayerSerial = function ( ) if Serials[getPlayerSerial( )] then guiCreateLabel ( 500, 500, 400, 100, Serials[getPlayerSerial( )].." Banned.", false ) fadeCamera ( false ) showChat ( false ) toggleAllControls ( false, false, false ) end end checkPlayerSerial ( )
  11. لم يتم التجربة -- Client Side AllowedTeams = { ["Police"] = { "Grove", "Medic" }; ["Medic"] = { "Ballas", "No Team", "Grove", "Police" }; --["اسم التيم] = { "x التيمات اللي مايقدر يهاجمها" }; }; addEventHandler ( "onClientPlayerDamage", localPlayer, function ( attacker ) if attacker then if getElementType ( attacker ) == "player" then local sourceTeam, attackerTeam = getPlayerTeam ( source ), getPlayerTeam ( attacker ) if sourceTeam and attackerTeam then local allowTeams = AllowedTeams[ getTeamName ( attackerTeam ) ] if allowTeams then for index, value in ipairs ( allowTeams ) do if value == getTeamName ( sourceTeam ) then cancelEvent ( ) break end end end end end end end )
  12. لو كانت المساعدة لصاحب الموضوع فقط كما تقول فـ لماذا المواضيع ظاهرة لجميع الأعضاء ؟؟
  13. -- Server Side for i, v in ipairs ( getAccounts ( ) ) do if hasObjectPermissionTo ( "user."..getAccountName ( v ), "general.adminpanel", false ) then local player = getAccountPlayer ( v ) if player then triggerClientEvent ( source, "updateGridList", source, getPlayerName(player).." ("..getAccountName ( v )..")", "online" ) else triggerClientEvent ( source, "updateGridList", source, getAccountName ( v ), "offline" ) end end end
  14. وين العنصر حق الفنكشن ؟ setCameraMatrix ( source, ....... )
  15. السعر نفسه ماتغير لكن التكلفة تختلف على حسب طريقة الدفع اللي اخترتها مثلاً لو اخترت الجوال $ الشركة اللي راح تستقبل الفلوس من الجوال تبي فايدة
×
×
  • Create New...