-
Posts
1,388 -
Joined
-
Last visited
-
Days Won
14
Everything posted by +Source|>
-
Name وش معرفها local Name = getAccountName (getPlayerAccount (source) ) + تاكد من اسم التريقر
-
addEventHandler("onClientGUIDoubleClick", guiResource2, function(player) local pl = guiGridListGetItemText ( places1 , guiGridListGetSelectedItem ( places1 ), 1) if pl == "البــدايــة │ X " then if isPedInVehicle ( player ) then fadeCamera ( false, 0.5 ) setTimer( function() triggerServerEvent ("bdaya", localPlayer) guiSetVisible ( GUIEditor.window[1],false) showCursor(false) setTimer( function() fadeCamera ( true, 0.5 ) end,1000,1) end,500,1) end end end ) ابيه ينتقل واللاعب داخل السيارة وخارج السيارة
-
انا اعتقد لو ماني غلطان انه عشان صاحب المود اللي مسويه مسويه لجروب ادمن لرتبة ادمن لكن السؤال هنا , وليه في جروبات الثانيه ما تضيف المود والادمن تضيف المود يمكن لان جروب الادمن هو يشغل المود ويتولى اعادة تشغيله مجددا مثل المهمات عشان المهمات تخلص وتشتغل من جديد تضاف للادمن
-
وش كود التحريك اللي يخليها تجي يمين يسار
-
طلب كود تحريك الصورة احرك الصورة وتوقف شوي وترجع تتحرك مثلا تدور وتوقف وتدور
-
function isPlayerInRangeOfPoint ( player, x, y, z, range ) local px, py, pz = getElementPosition ( player ) return ( ( x- px ) ^2+ ( y- py ) ^2+ ( z- pz ) ^2 ) ^0.5 <= range end RGBToHex = function (red, green, blue, alpha) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then return nil end if(alpha) then return string.format ( "#%.2X%.2X%.2X%.2X", red, green, blue, alpha ) else return string.format ( "#%.2X%.2X%.2X", red, green, blue ) end end LocalChat = function ( player, command, ... ) if ChatLocalDisabled then local acc = getPlayerAccount(player) if not isGuestAccount ( acc ) then if not isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Console")) then outputChatBox ( "(LOCAL) * Locked", player, 255, 255, 0, true ) cancelEvent ( ) return end else outputChatBox ( "(LOCAL) * Locked.", player, 255, 255, 0, true ) cancelEvent() return end end local px, py, pz = getElementPosition ( player ) local msg = table.concat ( {...}, " " ) for i, v in ipairs ( getElementsByType ( "player" ) ) do if isPlayerInRangeOfPoint ( v, px, py, pz, 30 ) then if ( isPlayerMuted ( source ) ) then return end ------------- التحقق local plrTeam = getPlayerTeam(player) if plrTeam then local rr, gg, bb = getTeamColor(plrTeam) outputChatBox ( RGBToHex(rr, gg, bb).."(LOCAL) "..getPlayerName(player)..": #FFFFFF"..msg, v, 255, 255, 0, true ) else outputChatBox ( "(LOCAL) "..getPlayerName(player)..": #FFFFFF"..msg, v, 255, 255, 0, true ) end end end outputServerLog("LOCAL: ".. getPlayerName ( player ) .. ": " .. msg) end addCommandHandler ( "Local", LocalChat ) سطر 38
-
ما اشتغل function isPlayerInRangeOfPoint ( player, x, y, z, range ) local px, py, pz = getElementPosition ( player ) return ( ( x- px ) ^2+ ( y- py ) ^2+ ( z- pz ) ^2 ) ^0.5 <= range end RGBToHex = function (red, green, blue, alpha) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then return nil end if(alpha) then return string.format ( "#%.2X%.2X%.2X%.2X", red, green, blue, alpha ) else return string.format ( "#%.2X%.2X%.2X", red, green, blue ) end end LocalChat = function ( player, command, ... ) if ChatLocalDisabled then local acc = getPlayerAccount(player) if not isGuestAccount ( acc ) then if not isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Console")) then outputChatBox ( "(LOCAL) * Locked", player, 255, 255, 0, true ) cancelEvent ( ) return end else outputChatBox ( "(LOCAL) * Locked.", player, 255, 255, 0, true ) cancelEvent() return end end local px, py, pz = getElementPosition ( player ) local msg = table.concat ( {...}, " " ) for i, v in ipairs ( getElementsByType ( "player" ) ) do if isPlayerInRangeOfPoint ( v, px, py, pz, 30 ) then if ( isPlayerMuted ( source ) ) then return end local plrTeam = getPlayerTeam(player) if plrTeam then local rr, gg, bb = getTeamColor(plrTeam) outputChatBox ( RGBToHex(rr, gg, bb).."(LOCAL) "..getPlayerName(player)..": #FFFFFF"..msg, v, 255, 255, 0, true ) else outputChatBox ( "(LOCAL) "..getPlayerName(player)..": #FFFFFF"..msg, v, 255, 255, 0, true ) end end end outputServerLog("LOCAL: ".. getPlayerName ( player ) .. ": " .. msg) end addCommandHandler ( "Local", LocalChat )
-
والله تبي تجي تعال يعطيك العافيه
-
dxDrawRectangle ظهرت dxDrawText ما ظهرت
-
ما ظبط الكلام ما ظهر + onClientRender ما تظبط معي
-
addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[3] then local gft = guiGetText(GUIEditor.edit[1]) if gft == "" then return end playSoundFrontEnd ( 30 ) dxDrawRectangle(0, 551, 800, 39, tocolor(0, 0, 0, 159), false) dxDrawText(gft, 0, 551, 800, 586, tocolor(255, 255, 255, 255), 2.20, "sans", "center", "center", false, false, false, false, false) end end ) لما اضغط الزر الرسالة تجي وتختفي بلمح البصر ابيها تقعد شوي قبل تختفي
-
والله حاولت كثير وصلت لهاذي وهي خطأ addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[1] then local gft = guiGetText (GUIEditor.edit[1]) if gft == "" then return end triggerEvent("dx2", localPlayer) setTimer( function() removeEventHandler("onClientRender", root, dx2) end,2000,1) end end ) addEvent("dx2", true) addEventHandler("dx2", root, function() playSoundFrontEnd ( 30 ) dxDrawText(gft, 158 - 1, 521 - 1, 695 - 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 - 1, 695 + 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 - 1, 521 + 1, 695 - 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 + 1, 695 + 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158, 521, 695, 563, tocolor(255, 255, 255, 255), 4.00, "default", "center", "center", false, false, false, true, false) end )
-
بجرب addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[1] then local gft = guiGetText (GUIEditor.edit[1]) if gft == "" then return end playSoundFrontEnd ( 30 ) dxDrawText(gft, 158 - 1, 521 - 1, 695 - 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 - 1, 695 + 1, 563 - 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 - 1, 521 + 1, 695 - 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158 + 1, 521 + 1, 695 + 1, 563 + 1, tocolor(0, 0, 0, 255), 4.00, "default", "center", "center", false, false, false, true, false) dxDrawText(gft, 158, 521, 695, 563, tocolor(255, 255, 255, 255), 4.00, "default", "center", "center", false, false, false, true, false) end end ) الحين كيف اخلي لما الرسالة تنرسل تقعد شوي وتروح
-
كيف اسويلها setTimer يعني لما اللاعب يخش يجيه الرسالة تقعد شوي وتروح