-
Posts
1,518 -
Joined
-
Last visited
-
Days Won
8
Everything posted by Simple0x47
-
Part of programming is having an open mind but at the same time having a critic view of what you're doing, and yes I go for pure code speed with an excellent readability, the thing is figuring out a great structure and work with it. That's why I'm pretty tired to see in almost every script here on MTA Forums or anywhere else Ipairs for almost everything. If you guys enjoy writing ipairs in every loop, go ahead and make some trash code.
-
How to change your MTA Forums username
Simple0x47 replied to jhxp's topic in Site/Forum/Discord/Mantis/Wiki related
Nice feature :D. When is there going to be a possibilty of restarting the post count and post stats like post per day.- 1 reply
-
- 1
-
-
- mta forums
- forums
-
(and 2 more)
Tagged with:
-
That sounds very good. Let's make later when I'll finish mine a comparation. I'm pretty curious to see the difference.
-
If it's that good I hope there's no freezing times.
-
One thing. No system is perfect, there's always a fail.
-
A proof is coming, stay tuned.
-
I'm not mad. Just being poetic with scripting.
-
You could convert the image to binary and then recomponse it on the server.
-
People got wrong my words. I'm talking about the mentality of programmers and scripters, because there are all kind of ways to do things but there's always a best way to choose and there's where we start to discuss about loops. The amount of loops and their type represent a scripter's way to structurize his code, and in my opinion Ipairs and Pairs can be avoided and limited just to necessary cases and these cases are very hard to be found while you're scripting from scratch so stop putting Ipairs and Pairs each 10 lines of written code.
-
A good streaming method but as you know it's like SAMP. BOOM! Crash.
-
That for sure.
-
Expected: if ( getElementDimension ( localPlayer ) == 1 ) then
-
When I was talking about the creation of a new vehicle, I was including the doors angle and the damage. It would take some time but it would worth some.
-
You should use this event to make it easier. OnClientPlayerWeaponFire Check if it's the localPlayer the ones that shoots and check if the weapon ID is the rocket launcher and done.
-
And then comes the numerical which if you think of a good structure you can reduce some miliseconds without any need to use pairs or ipairs.
-
Here... -- SERVER addEvent( "onZombieSpawn", true ) function RanSpawn_Z ( gx, gy, gz, rot, zDimension) local safezone = 0 local allradars = getElementsByType("radararea") for i = 1, #allradars do local theradar = allradars[ i ] if getElementData(theradar, "zombieProof") == true then if isInsideRadarArea ( theradar, gx, gy ) then safezone = 1 end end end if safezone == 0 then if table.getn ( everyZombie ) < newZombieLimit then if not rot then rot = math.random (1,359) end randomZskin = math.random ( 1, table.getn ( ZombiePedSkins ) ) local zomb = createPed( tonumber( ZombiePedSkins[randomZskin] ), gx, gy, gz ) if zomb ~= false then setElementDimension( zomb, zDimension or 0 ) setElementData ( zomb, "zombie", true ) table.insert( everyZombie, zomb ) setTimer ( function (zomb, rot) if ( isElement ( zomb ) ) then setPedRotation ( zomb, rot ) end end, 500, 1, zomb, rot ) setTimer ( function (zomb) if ( isElement ( zomb ) ) then setPedAnimation ( zomb, "ped", chaseanim, -1, true, true, true ) end end, 1000, 1, zomb ) setTimer ( function (zomb) if ( isElement ( zomb ) ) then setElementData ( zomb, "status", "idle" ) end end, 2000, 1, zomb ) triggerClientEvent ( "Zomb_STFU", getRootElement(), zomb ) end end end end addEventHandler( "onZombieSpawn", getRootElement(), RanSpawn_Z ) -- CLIENT addEvent( "Spawn_Placement", true ) function Spawn_Place(xcoord, ycoord) local x,y,z = getElementPosition( getLocalPlayer() ) local playerDimension = getElementDimension( localPlayer ) local posx = x+xcoord local posy = y+ycoord local gz = getGroundPosition ( posx, posy, z+500 ) triggerServerEvent ("onZombieSpawn", getLocalPlayer(), posx, posy, gz+1, playerDimension ) end addEventHandler("Spawn_Placement", getRootElement(), Spawn_Place)
-
The HUD doesn't show up because that vehicle is not defined in the DayZ gamemode, so it cannot be turned on. Try to add that model of the helicopter to the DayZ vehicle tables and define each number of parts to get it working.
-
If you don't want it to appear automatically just get that Gui functions into a function handler of the event you want it to show up. And then use like @Gravestone said the guiSetVisible.
-
But you're telling that it does what you're waiting automatically. Isn't it a good thing? Just take some time before posting this kinds of "requests" here in the scripting forum. Go and search for that function or event into your DM gamemode.