-
Posts
1,518 -
Joined
-
Last visited
-
Days Won
8
Everything posted by Simple0x47
-
The property has four sections. Top Left, Top Right, Bottom Left, Bottom Right. Each of them uses a HEX code which follows a RGBA structure. FF(Red)00(Green)FF(Blue)00(Alpha). So just get a normal RGB hex code and add to it at the end FF for 100% Alpha or 00 for 0% Alpha.
-
Just make use of getElementDimension and getElementInterior, attach them to the onClientPlayerDamage. Make a statment to check if it's a forbidden DM interior and cancel the event.
-
Horrible idea? It's the way things are done, if it's difficult that doesn't mean it's not a good idea.
-
There's some "stream" method you could use to "add" vehicles replacing some useless objects, and attaching that replacement to an invisible vehicle. But it would require a good sync based on vehicle events.
-
B.L.A.S.T. V5!!! ALL NEW!! ALL GOOD!! ALL SPAM!!
Simple0x47 replied to Mr.Bill's topic in B.L.A.S.T.
A: You're you. Q: When and why? -
addEvent( "onClientSendMoney", true ) local amounts = {} function handleMoney( money ) if ( source and getElementType( source ) == "player" and money ) then amounts[ source ] = money end end addEventHandler( "onClientSendMoney", root, handleMoney ) local marker = createMarker() -- Insert your own data local tick = 0 function handleHit( thePlayer, matchingDimension ) if ( thePlayer and getElementType( thePlayer ) == "player" and matchingDimension ) then local money = amounts[ thePlayer ] if ( money ) then if ( getTickCount() - tick > 50000 ) then -- Give money each 50sec givePlayerMoney( thePlayer, money ) tick = getTickCount() local players = getElementsByType( "player" ) for i = 1, #players do local player = players[ i ] outputChatBox( "[MONEY] " .. getPlayerName( thePlayer ) .. " took the money he wanted!", player, 0, 255, 0 ) end end end end end addEventHandler( "onPlayerMarkerHit", root, handleHit ) Client: sett = guiCreateButton(507, 278, 64, 37, "Set The Money", true) money = guiCreateEdit(448, 225, 166, 45, "", true) addEventHandler ( "onClientGUIClick", resourceRoot, function ( b, s) if ( b == "left" and s == "down" ) then if ( source == sett ) then local amount = guiGetText ( money ) triggerServerEvent( "onClientSendMoney", localPlayer, ( amount ) and tonumber( amount ) or 0 ) end end end ) This should work, just insert the data quoted.
-
B.L.A.S.T. V5!!! ALL NEW!! ALL GOOD!! ALL SPAM!!
Simple0x47 replied to Mr.Bill's topic in B.L.A.S.T.
A: Green. Q: What's your favourite scripter? :V -
B.L.A.S.T. V5!!! ALL NEW!! ALL GOOD!! ALL SPAM!!
Simple0x47 replied to Mr.Bill's topic in B.L.A.S.T.
A. There was no best moment, all of my days were the best :v Q. New year, new... -
I dont like ilussions
-
Shaders are for making just an ilussion effect.
-
It's not possible. It's the pyshics engine with a good defined collisions.
-
Here you have a more detailed poll
-
Oh :~ I forgot it but I think you can put it like shared
-
A police script? Sure lemme be good. -- police_script.lua function policeScript() return end
-
Hello, I've seen that "libEGL.dll" is not into the MTA SA source code and I'd like to know what's used for
-
No se puede modificar el IPF.
-
The most optimized thing you can do is to make a local table which holds on the top times of every map with a key which is the name of the map, and then in the same script add some functions which allows to edit the data in there, and when the resource is stopped save these tables with JSON into a database for getting sure you won't lose any info.
-
I would like to ask why the file net.dll is not opensource? It's the raknet dynamic library with adaptations to MTA?
-
Tell us what happens exactly and when, to get a general idea of the error is happening.
-
You could use the dynamic tables to compare at the end the results with the top ones and if there's any change. Get the actual data in JSON and add to it the values that you want from the table converting them also to JSON. And then just store again the JSON.
-
¿Quieres probarlo? Hacemos una gamemode y la subimos a ver si la vemos vendida por algun sitio quiza la deep web :v
-
Un día y medio no sirve de nada. Ya que lo dan gratis podrían dar al menos un mes. Esto se nota desde lejos que se lo haceis para robar uno que otro script.
-
Haces que la key quede como columna y listo :v
-
Daca ai nevoie de ajutor contacteazama pe PM sau Skype ( killer.68x ).
-
function getColor( length ) local rel = length / maxLength -- Define your own maxLength for having a decimal value local r, g, b if ( rel > 0.5 ) then local p = ( rel * 0.75 ) / 0.5 r, g, b = interpolateBetween( 0, 255, 0, 0, 0, 255, p, "Linear" ) else local p = ( rel * 0.25 ) / 0.5 r, g, b = interpolateBetween( 255, 0, 0, 0, 255, 0, p, "Linear" ) end return r, g, b end