
drk
Members-
Posts
1,607 -
Joined
-
Last visited
Everything posted by drk
-
you can buy it He can create his own too Advantages: He can put his own ideas on it; He don't need lost money. Desvantages: No desvantages.
-
Thanks for answering, but I wanna know only "c>!!b"
-
If you think that, try to play these race maps which have a lot of loops in the same place ( nab maps ) and things where you need jump and have a lot of rocks in front. You will fall because you hit the stone.
-
I don't like the map. Sorry, no originality.
-
Better start learning to create your own, because DirectX Text don't have same positions of gui label. And yes, you must change GUI and GUI Labels functions used.
-
lol What do you mean by "mod" ?
-
Use my dx text library: dx = { } dx.__index = dx local visible = { } local id = 0 function dx:Create ( Text, X, Y, W, H, Color, Scale, Font, AlignX, AlignY, Clip, Wordbreak ) if ( type ( Text ) == "string" and type ( X ) == "number" and type ( Y ) == "number" and type ( W ) == "number" and type ( H ) == "number" and type ( Scale ) == "number" ) then local text = { eText = Text; eX = X; eY = Y; eW = W; eH = H; eColor = Color; eScale = Scale; eFont = Font; eClip = Clip; eWordbreak = WordBreak; ePostGUI = true } setmetatable ( text, { __index = dx } ) id = id + 1 table.insert ( visible, id, text ); return text end end function dx:Color ( ) return unpack ( self.eColor ) end function dxGetAlpha ( elem ) local r, g, b, a = elem:Color ( ) return a end function dx:SetColor ( r, g, b, a ) self.eColor = { r, g, b, a } end function dx:Text ( text ) self.eText = text end function dxSetTime ( elem, time ) elem:Text ( time ) end function dxSetText ( elem, text ) elem:Text ( text ) end function dx:GetPosition ( ) return self.eX, self.eY end function dx:Position ( x, y ) self.eX = x self.eY = y end addEventHandler ( 'onClientRender', root, function ( ) for _, self in ipairs ( visible ) do while not false do draw ( self.eText, self.eX, self.eY, self.eW, self.eH, tocolor ( unpack ( self.eColor ) ), self.eScale, self.eFont, self.eAlignX, self.eAlignY, tostring ( self.eClip ), tostring ( self.eWordbreak ), true, self.eColor [ 4 ] ) break end end end ) function draw(str, ax, ay, bx, by, color, scale, font, left, top, clip, wordbreak, postGUI,alpha) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), alpha ) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font ) ax = ax + w color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), alpha ) end last = e + 1 s, e, cap, col = str:find( pat, last ) end if last <= #str then cap = str:sub( last ) local w = dxGetTextWidth( cap, scale, font ) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font, left, top, clip, wordbreak, postGUI ) end end Example: myText = dx:Create ( "Test", 200, 100, 50, 50, { 255, 255, 255, 255 }, 1.0, 'bankgothic', 'center', 'center', false, false, true ) Just replace your top times labels with these things ( must edit ).
-
Hi guys! I started learning these days and I need know this: int a = 1, b = 2, c = 3; int result = ++a/a&&!b&&c||b--||-a+4*c>!!b; I know that it's needed to put two equal symbols to the system understand that it's to write "!!" and not use "!", but I can't understand this: c>!!b. Someone, help me please and sorry for can't explain good.
-
The function 'dxDrawColoredText' ? Yes.
-
I think he wanna create a fade anim with onClientRender event.
-
Go to Windows' command line ( Start Menu -> Run -> type 'cmd' | Start Menu -> Search for 'cmd' | Aplicattions tab -> Search for 'cmd' or Run ) and type 'ipconfig'. Get "Default Gateway" and put in your browser. Then, just try to find username and password
-
New version? Cool, I hate this theme
-
You know what are you doing? Everytime you change weapon, you will get killed because when player get weapon, player weapon will be the weapon you got now. Also "weapon" is nil. So: addEventHandler ( 'onPlayerWeaponSwitch', root, function ( _, nWeapon ) if ( nWeapon == 31 ) then killPed ( source ); outputChatBox ( 'You cannot use this weapon!', source, 255, 255, 255, false ); end end )
-
No. I can't. I never used this modem / router. I don't know any default gateway of and settings password. So, better search for something. That's how I found my router settings password
-
Create a new resource and put this code in a server-side script file, no?
-
First, yes you can make this. Just create a table with id and name you want and use like "table[id].name". Second, your code is wrong. Third, tabulate your code and use LUA tags. Edit: I've not seen all, I thought that it's other thing. By your way, you can't. You must use ID because parameter "weapon" is a real number, not a string
-
Hi guys! I just found the video of new SebaS map. Here: Enjoy. Now guys, wait for the amazing Vortex v13 ( i've seen some pics of it, it's awesome, best mapping ever ).
-
Just open ports on your Modem / Router configuration.
-
It is recommended to set 45 FPS on Race servers because some of PC's can't reach 100 FPS. When Race server would have 100 FPS, players with better hardware would have advantage over players with screwed hardware. The problem isn't that, because players with slow computers has this problem ( like me ). The problem is that with 60 ~ 100 FPS will be very hard to play.
-
That's not a script, that's a picture.
-
That's just more one stolen mapping ideas map.
-
Board index ‹ General MTA ‹ Other languages ‹ Portuguese / Português
-
Yakuza, FPS limit set to 100 will not be good for fast computers. Will be hard to play maps with 100 FPS.
-
Not needed.