Jump to content

Tando

Members
  • Posts

    121
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Tando

  1. Hello,

    I need help in Server .lua

    Logo:

    Quote

    rlcC5ai.png

    Client:

    sx,sy = guiGetScreenSize ()
    addEvent ("onNotificationWindowHide",false)
    addEvent ("onNotificationWindowShow",false)
    box = false
    
    function showBox(value, str)
    	if str and type(str) == "table" and #(str) > 0 then
    		box = true
    		if value == "info" then 
    			showTipBox (table.concat(str," "),"img/info.png")
    			outputConsole ("[INFO]" .. table.concat(str," "))
    		--[[elseif value == "error" then 
    			showTipBox (str,"img/error.png")
    			outputConsole ("[ERROR]" .. str)
    		elseif value == "warning" then 
    			showTipBox (str,"img/warning.png")
    			outputConsole ("[WARNING]" .. str)]]--
    		end
    	end
    end
    addEvent("CreateBox", true)
    addEventHandler("CreateBox", getRootElement(), showBox)
    
    addEventHandler ("onNotificationWindowHide",getRootElement(),
    	function ()
    		box = false
    	end
    )
    	
    tipBox = {}
    tipBox.path = ""
    tipBox.show = false
    tipBox.state = nil
    tipBox.string = nil
    tipBox.starTick = nil
    tipBox.currentY = nil
    tipBox.time = 800
    tipBox.next = nil
    tipBox.nextPath = ""
    tipBox.timer = nil
    tipBox.startY = sy+256
    tipBox.stopY = sy-150
    
    function showTipBox (str,path)
    	if str then
    		if path == nil then
    			path = "img/info.png"
    		end
    		if fileExists (path) then
    			if tipBox.show == true then
    				tipBox.next = str
    				tipBox.nextPath = path
    			else
    				tipBox.path = path
    				tipBox.show = true
    				tipBox.state = "starting"
    				tipBox.string = str
    				tipBox.startTick = getTickCount()
    				triggerEvent ("onNotificationWindowShow",getRootElement())
    			end
    		end
    	end
    end
    addEvent("CreateTipBox", true)
    addEventHandler("CreateTipBox", getRootElement(), showTipBox)
    
    addEventHandler ("onClientRender", getRootElement(),
    	function ()
    		if tipBox.show == true and tipBox.string then
    			local width = dxGetTextWidth (tipBox.string, 1, "default-bold")
    			if width then
    				if tipBox.state == "starting" then
    					local progress = ((getTickCount() - tipBox.startTick) / tipBox.time)*0.5
    					local intY = interpolateBetween (
    						tipBox.startY,0,0,
    						tipBox.stopY,0,0,
    						progress,"OutElastic"
    					)
    					if intY then
    						tipBox.currentY = intY
    					else
    						tipBox.currentY = 100
    					end
    					if progress > 1 then
    						tipBox.state = "showing"
    						tipBox.timer = setTimer (
    							function ()
    								tipBox.startTick = getTickCount()
    								tipBox.state = "hiding"
    							end
    						,string.len(tipBox.string)*45+800,1)
    					end
    				elseif tipBox.state == "showing" then
    					tipBox.currentY = tipBox.stopY
    				elseif tipBox.state == "hiding" then
    					local progress = (getTickCount() - tipBox.startTick) / (tipBox.time)
    					local intY = interpolateBetween (
    						tipBox.stopY,0,0,
    						tipBox.startY,0,0,
    						progress,"Linear"
    					)
    					if intY then
    						tipBox.currentY = intY
    					else
    						tipBox.currentY = 100
    					end
    					if progress > 1 then
    						triggerEvent ("onNotificationWindowHide",getRootElement())
    						if tipBox.next then
    							if isTimer(tipBox.timer) then
    								killTimer(tipBox.timer)
    							end
    							tipBox.show = true
    							tipBox.state = "starting"
    							tipBox.string = tipBox.next
    							tipBox.startTick = getTickCount()
    							tipBox.next = nil
    							tipBox.path = tipBox.nextPath
    							return
    						else
    							tipBox.show = false
    							tipBox.state = nil
    							tipBox.string = nil
    							return
    						end
    					end
    				else
    					return
    				end
    				local width = 400
    				local x,y = sx - width - 5, tipBox.currentY
    				local textX,textY = x+100,tipBox.currentY+34.375
    				local textWidth,textHeight = 273.59375,82.8125
    				dxDrawImage(x,y,width,200,tipBox.path,0,0,0,tocolor(255,255,255),true)
    				dxDrawText(tipBox.string,textX,textY,textX+textWidth,textY+textHeight,tocolor(255,255,255),1,"default-bold","center","center",false,true,true)
    			end
    		end
    	end
    )
    
    

    First this system same as message but this with logo and will be under screen

    Server.lua = Command <text> for show inside Logo under screen

    Like Info for players ingame

    NOTE: Sry for spam posts i just want be finish my verison OF SAUG:RPG 3.5

  2. CPYHBH1.png

    These days I've been thinking about creating a RPG server from scratch. I know it's not easy but since May +/- I have been learning LUA (MTA) and I'm already familiar with the process, however, I'll need someone else to help me in this new adventure! 

    I need to get interested and trusted people to take this protect forward, including:

    • DX Profesional
    • Programmer (to work with me)
    • Designer (Photoshop)

    Resources

    The server should have:

    • Jobs
    • Bank
    • Temporary Vehicles spawner
    • Vehicle Shops
    • Inventory
    • Trade system
    • Used vehicles shop (players can trade vehicles with other players)
    • Jail (Map + Script)
    • Drug delivery and other criminal scripts
    • VIP system
    • Bank Robbery
    • Casino Robbery
    • Other scripts...

    All advanced scripts will be scheduled by the server programmers, only the most basic will be downloaded from the community! All scripts will be based on MySQL to work. This is because all the information is gathered in one place so accessible from anywhere in the world, while SQLite is just a file that can only be "treated" by the game...

    Screen Shots

    Quote

    D87hRXD.jpg
    VhyZfjz.jpg
    Sl4MmUG.jpg
    B6uoUaj.png
    kbgR7j0.png
    ck0TTQR.jpg
    ljAIOWh.jpg

    Conclusion

    I Just want make server have much players and be the top of servers

    I need help in news Like

    Quote
    • Drug delivery
    • Inventory
    • Casino Robbery
    • Logos
    • Help Panel

    Players

    Record : 35

    Players per day : 30/200

  3. On 5/29/2018 at 13:57, Infinity# said:

    Everyone has their own opinion and their own point of view on how they see things. Doesn't give them the right to share their opinions whenever they feel they should, and especially when it isn't a positive one either. But hey, it's your opinion and I respect it. Not everyone is perfect, don't punish these guys for it. Stop by and see, and because you might not like something doesn't mean you should have a say on it. Move on.

    Thanks For Talk to him <3

    On 5/11/2018 at 15:38, Tando said:

    CPYHBH1.png

    About Us:

     Welcome to San Andreas United Gaming (SAUG)
                
    We are a dedicated RPG server in MTA with a rapidly growing player base ever since our launch in April, 2018.
    We have accomplished many things,
    We focus heavily on the RPG aspect of MTA, which is not to be confused with RP (Roleplay).
    We attempt to have a friendly and fun community for everyone to enjoy.

    The SAUG staff can be identified by the "SAUG" tag before their name and a purple name color.
     If you are new to our server, don't fret. If you have any questions or concerns, press F6 and  state your problems there - staff members or experienced players will assist you.

     We highly advise you to listen to the staff members and follow the server rules.
    If you want to become more involved, feel free to visit Soon The latest news and announcements are posted on our forum daily.

    ScreenShots:

    Server Information:

    Server Owner: Tando/Venom
    Server Forum : Coming Soon
    Server Discord :
    https://discord.gg/XaPx7v3
    Server Verison : 3.5
    FB Group :
    https://www.facebook.com/groups/141559259848558/
    STAUTS : OPENED

    Server System:

    Server Record:

    Server Record : +15
    Server Record gift : VIP / Money / events

    Regards
    SAUG Staff Team

    Hello everybody,

    We are sorry for Close we had some problems and we fixed some of it still inventory we using our powers to get it or make it

    SAUG:RPG 3.5 will come Soon Plz wait us,

    And who saying our Server copycat i hope to tell you all servers copycat !! and if you don't like SAUG so don't waste your time with reply

    • Thanks 1
  4. 14 hours ago, Khadeer143 said:

    I can make you whole new system not clone of saeg or any servers if you can pay me xD

    i can't pay :D

     

    16 hours ago, mazen54 said:

    Easy

     

    if easy so where is it ?

  5. Hello everybody,

    I Tired from Work in Inventory to Put DrugEffect/Drug Draw Time

    As i know only @_DrXenon , @Oussema have inventory oF STORM/SAEG Client .lua May i get Help in it

    May i get Help in DrugEffect/DrugDXDraw For Time here or get Full Inventory !

    Client:

    
    local sx,sy = guiGetScreenSize()
    
    addEvent("Hiddeny",true)
    addEventHandler("Hidden", root,
        function(items)
            if not isElement(invwdw) then
                invwdw = guiCreateWindow((sx - 291)/2,(sy - 445)/2, 291, 445, "SAUG Inventory", false)
                guiWindowSetSizable(invwdw, false)
    
                logo = guiCreateStaticImage(70, 22, 149, 56, ":SAUGLogin/logo.png", false, invwdw)
                invgrid = guiCreateGridList(9, 81, 273, 311, false, invwdw)
                guiGridListAddColumn(invgrid, "Item", 0.5)
                guiGridListAddColumn(invgrid, "Quantitiy", 0.5)
                    for i,v in ipairs(items) do
                        row = guiGridListAddRow(invgrid)
                        guiGridListSetItemText(invgrid, row, 1, v["item"], false, false)
                        guiGridListSetItemText(invgrid, row, 2, v["quant"].." unit(s)", false, false)
                    end
                closebtn = guiCreateButton(213, 396, 69, 39, "Close", false, invwdw)
                infolabel = guiCreateLabel(10, 396, 196, 36, "Double mouse 'Right' click to use!\nDouble mouse 'Left' click to drop!", false, invwdw)
                guiSetFont(infolabel, "default-bold-small")
                guiLabelSetHorizontalAlign(infolabel, "center", false)
                guiLabelSetVerticalAlign(infolabel, "center")    
            else
                destroyElement(invwdw)
            end
        end
    )
    
    addEventHandler("onClientGUIClick",root,function()
        if isElement(invwdw) then
            if source == closebtn then
                destroyElement(invwdw)
            end
        end
    end)
    
    addEventHandler("onClientGUIDoubleClick",root,function()
        if isElement(invwdw) then
            if source == invgrid then
                local sel = guiGridListGetSelectedItem(invgrid)
                local item = guiGridListGetItemText(invgrid,sel,1)
                local quan = guiGridListGetItemText(invgrid,sel,2)
                local quan = string.gsub(quan,"unit(s)","")
                local quan = tonumber(quan)
                    triggerServerEvent("useItem",localPlayer,item)
            end
        end
    end)
    
    addEvent("updateInvGridList",true)
    addEventHandler("updateInvGridList",root,function(items)
        if isElement(invwdw) then
                destroyElement(invgrid)
                    --local items = getElementData(localPlayer,"inventoryitems")
                    invgrid = guiCreateGridList(9, 81, 273, 311, false, invwdw)
                    guiGridListAddColumn(invgrid, "Item", 0.5)
                    guiGridListAddColumn(invgrid, "Quantitiy", 0.5)
                        for i,v in ipairs(items) do
                            row = guiGridListAddRow(invgrid)
                            guiGridListSetItemText(invgrid, row, 1, v["item"] or v[1], false, false)
                            guiGridListSetItemText(invgrid, row, 2, (v["quant"] or v[2]).." unit(s)", false, false)
                        end
        end
    end)
    
    

     

×
×
  • Create New...