-
Posts
234 -
Joined
-
Last visited
Everything posted by #1Topro
-
Client function dxDrawFramedText(message, left, top, width, height, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, frameColor) color = color or tocolor(0, 0, 0, 50) frameColor = frameColor or tocolor(0, 0, 0, 255) scale = scale or 1.1 font = font or "default" alignX = alignX or "left" alignY = alignY or "top" clip = clip or false wordBreak = wordBreak or false postGUI = postGUI or false dxDrawText(message, left + 1, top + 1, width + 1, height + 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI,true) dxDrawText(message, left + 1, top - 1, width + 1, height - 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI,true) dxDrawText(message, left - 1, top + 1, width - 1, height + 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI,true) dxDrawText(message, left - 1, top - 1, width - 1, height - 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI,true) dxDrawText(message, left, top, width, height, color, scale, font, alignX, alignY, clip, wordBreak, postGUI,true) end function as() local data = getElementData(root,'3ajel') if not data then data = {'',''} end local Name = data[1] or '' local message = data[2] or '' dxDrawText("*Admin", 14, 571, 766, 605, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) end addEventHandler("onClientRender", getRootElement(), as) Server function check(thePlayer, commandName,...) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Head.Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) then local Msg = {...} local message = table.concat(Msg, " ") local name = getPlayerName( thePlayer ) local msg = message setElementData(root,'3ajel',{name,msg}) end end addCommandHandler("AM", check) function clear(thePlayer, commandName) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) then setElementData(root,'3ajel',false) end end addCommandHandler("Clear", clear)
-
سسلام عليكم شباب أبي كود يخلي الالوان تتفعل في العاجل يعني يوم اكتب #FFee11 Hello يصير اخضر ما يجي هالاكواد وأبي فنكشات او اكواد تخلي العاجل ينحفظ اذا اللعب خرج ؟ هل من غلام ؟ :]
-
ايش ذا setTimer( function() removeEventHandler( 'onClientRender', root, render ) addEventHandler( 'onClientRender', root, render ) سوي اغلاق للتايمر فنكشن وحط الوقت الي تبيه, وشيل removeEventHandler الله يهديخ بس لعبا الي قال لي احط removeEventHandler[ الله يهديه
-
يا صديق لو انت تشوف !! عتلاقي الاكواد موجودة !!
-
-
function convertNumber ( number ) local formatted = number while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if ( k==0 ) then break end end return formatted end function getTimeLeft(Timer) ms = getTimerDetails(Timer) local m = math.floor(ms/60000) local s = math.floor((ms-m*60000)/1000) if m < 10 then m = ""..m end if s < 10 then s = ""..s end return ""..m.." Minute and "..s.." Second" end function FunctionCommand_ ( Player, _, aWin_ ) Restart = setTimer( addCommandHandler, 3000 , 1, 'Flip' , FunctionCommand_ ) removeCommandHandler('Flip') if ( math.random( 0 , 2 ) == 2 ) then local WinMoney = aWin_ * 2 givePlayerMoney ( Player , WinMoney ) outputChatBox("* #FFFFFF[Filp System] #F3FF00: #FF0000( #00FFFC"..getPlayerName(Player).." #FF0000) #007CFFWin #40FF00$"..convertNumber(WinMoney), root, 255, 0, 0, true ) else if ( getPlayerMoney ( Player ) >= tonumber(aWin_) ) then takePlayerMoney ( Player , aWin_ ) end outputChatBox("#00ff00* #ffffff"..getPlayerName(thePlayer).." #ffffffflip a coin and lost $#ff0000"..value.."#ffffff!",getRootElement(),255,255,255,true) end end addCommandHandler( 'Flip' , FunctionCommand_ ) addCommandHandler( 'TimeFlip' , function ( Player ) if ( isTimer(Restart) ) then outputChatBox("* #FFFFFF[Filp System] #F3FF00: #FF0000"..getTimeLeft(Restart), Player, 255, 0, 0, true ) else outputChatBox("* #FFFFFF[Filp System] #F3FF00: #1AFF00The Command is Start", Player, 255, 0, 0, true ) end end )
-
Nice صراحة مود في منتهه الروعة :]
-
هو اشتغل بس ما اقدر اخلي يوم الواحد يخسر فلوسه يجي بالشات انه خسر مثلا 200 ويوم يسوي فلب يظهر للكل + أبي اغير وقت الفلب ويكون كل 30 ثانية .
-
أبرنس انا جربته في سيرفر خويي وهو كونسول ووقفت قدامه وما لقيت شيء
-
اخي اجمع كودات المودين في مود واحد ولو مسوي تعريف بنفس الاسم غيرو Ty ..
-
أبي اكواد يوم اكتب بالشات /Flip 200 ممكن افوز الدبل وممكن اخسر ال 200 وتصير كل 30 ثانية معلومة للديربي هل من اجابة ؟
-
ما انعدل ما يجي شيء فوق الرئس
-
سسلام عليكم عيد ميارك كل عام وانتمم بخير كنت أبي وظائف لو الواحد بنقه عداا 600 ينطرد او الاف بي اس حقه عدي 15
-
شف هذا مود يعطي تاج فوق الرئس Client function dxDrawTextOnElement(TheElement,text,height,distance,R,G,B,alpha,size,font,checkBuildings,checkVehicles,checkPeds,checkDummies,seeThroughStuff,ignoreSomeObjectsForCamera,ignoredElement) local x, y, z = getElementPosition(TheElement) local x2, y2, z2 = getElementPosition(localPlayer) local distance = distance or 20 local height = height or 1 local checkBuildings = checkBuildings or true local checkVehicles = checkVehicles or false local checkPeds = checkPeds or false local checkObjects = checkObjects or true local checkDummies = checkDummies or true local seeThroughStuff = seeThroughStuff or false local ignoreSomeObjectsForCamera = ignoreSomeObjectsForCamera or false local ignoredElement = ignoredElement or nil if (isLineOfSightClear(x, y, z, x2, y2, z2, checkBuildings, checkVehicles, checkPeds , checkObjects,checkDummies,seeThroughStuff,ignoreSomeObjectsForCamera,ignoredElement)) then local sx, sy = getScreenFromWorldPosition(x, y, z+height) if(sx) and (sy) then local distanceBetweenPoints = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distanceBetweenPoints < distance) then dxDrawText(text, sx+2, sy+2, sx, sy, tocolor(R or 255, G or 255, B or 255, alpha or 255), (size or 1)-(distanceBetweenPoints / distance), font or "arial", "center", "center", true) end end end end local www = dxCreateFont("arial.ttf",13) function render() for i,k in ipairs (getElementsByType("player")) do if k ~= localPlayer and ( getElementData (k,"TAG") == '[Console]' or getElementData (k,"TAG") == '[Head Admin]' ) then dxDrawTextOnElement(k,getElementData (k,"TAG") or 'none',1,20,math.random(0, 255), math.random(0, 255), math.random(0, 255),255,1,www) else if k = localPlayer and ( getElementData (k,"TAG") = '[Console]' or getElementData (k,"TAG") ~= '[Head Admin]' ) then dxDrawTextOnElement(k,getElementData (k,"TAG") or 'none',1,20,0,0,255,255,1,www) end end end end setTimer( function() removeEventHandler( 'onClientRender', root, render ) addEventHandler( 'onClientRender', root, render ) Server local Groups = { {'Console',"[Console]"}, {'Head.Admin',"[Head Admin]"}, } ; addEventHandler( 'onResourceStart', getResourceRootElement(), function( ) for _, i in ipairs( getElementsByType( 'player' ) ) do if ( getElementData ( i, 'TAG' ) ) then removeElementData ( i, 'TAG' ) end end end ) addEventHandler( 'onPlayerLogin', root, function( ) for _,v in ipairs (Groups) do if isObjectInACLGroup( 'user.'..getAccountName( getPlayerAccount( source ) ), aclGetGroup( v[1] ) ) then setElementData ( source,'TAG', v[2] ) end end end ) addEventHandler( 'onPlayerLogout', root,function( ) if ( getElementData ( source, 'TAG' ) ) then removeElementData ( source, 'TAG' ) end end ) [ ما يطلع التاج فوق الرئس [ فوق اللعب