-
Posts
2,608 -
Joined
-
Last visited
Everything posted by 12p
-
Both are actually customizables in V2... LoL
-
... O.K. Ty hehe ^^
-
Download versions on MTA main page
12p replied to Arran's topic in Site/Forum/Discord/Mantis/Wiki related
I meant the latest versions of MTA have some updates that may keep players crashing as before. Like MTA 1.1, you can't say it works 100% crash-less... Because is a NIGHTLY. -
What does "next" lua function do? As simple as that, is my question.
-
There is no such event like onPlayerMoneyChange, I don't have any idea of how to do that Of course I could do it by setTimer or using onClientRender but it wouldn't be ok and may use too much CPU.
-
By logic, if there is a "ping" element data, then it should exist a "money" element data. Does it exist, and what's the name of it? I tried with "money" and "cash" but both doesn't work... It is for my "dxscoreboard" 'modification'
-
There is an error in that script. There are 2 types of value here: STRING and NUMBER. OutputChatBox SAYS IN THE DOCUMENTATION that requires a STRING. And you are giving it, the 2 times, invalid arguments, NUMBERS. Use: tonumber When you want to make numbers a string. Now the answer: function top5Cash ( ) top5 = { } mytable = { } for i, pl in ipairs ( getElementsByType ( "player" ) ) do local cash = getElementData ( pl, "data.cash" ) table.insert ( mytable, cash ) end --This sorts the table from max money values to minor. table.sort ( mytable,function ( a, b ) return a>b end ) --For the first 5 values encountered at the table, insert it into the top 5 table for i = 1, 5 do table.insert ( top5, mytable[5] ) end return top5 end addCommandHandler ( "topcash", top5Cash ) That will only return the table, huh. Now the other part, do it by yourself.
-
Ambas respuestas son validas, depende del angulo en el que se las vea. Deberias ser un poquito mas activo en el foro para ver si alguien te respondio, por cierto...
-
Edited, lol, my fail Whatever, MetalGear14 gave you the answer. Just analyze the old codes and you will *learn* something (last times, I was just giving you the codes, that way you won't learn anything )
-
EDIT: I said nothing. My fail ^^
-
I wonder the same thing. I was *unplicity* asking it
-
setVehicleColor setElementModel giveWeapon setPedWeaponSlot Click en cada nombre de función para ver la info. de esta
-
He meants, if you use some kind of options, you can "delete" from the list, servers that works with a specified gamemode (if I unselect the gamemodes "race", "assault", and "briefcaserace", then they shouldn't appear in the list). Sounds interesting
-
he meants the "author" of those resources is a robber (he stole the resources)
-
Yes. No. But it's a good idea, I'll add it. I'm not an expert on EDF. I tried but it didn't work. Whatever I will make a command for to add these texts with a GUI Thanks for your support EDIT: Updated to V2 with many new features
-
There's no need to use 2 if's, and if I'm right that won't work. This is the fixed code and with less lines and less weight function onGivePedWeapon ( pl, _, pedID, weap, ammo ) if pedID and weapon and amount then if getElementByID ( pedID ) then giveWeapon ( getElementByID ( pedID ), weap, ammo, true ) else outputChatBox ( "No ped has this ID", pl, 255, 0, 0 ) end else outputChatBox ( "Wrong Syntax!", pl, 255, 0, 0 ) end end addCommandHandler ( "givepedwp", onGivePedWeapon ) And use this new code for to create peds, otherwise the other one won't work. addCommandHandler ("createped", function ( pl, _, id) if not id then outputChatBox ( "The ped needs an ID to be spawned!", pl, 255, 0, 0 ) return end local x, y, z = getElementPosition (player) ped = createPed ( 165,x, y, z ) setElementID ( ped, id ) giveWeapon(ped, 31, 100, true) end)
-
...I think the description says everything, even the name...
-
Old Name: 3DT Create 3D DirectX Texts Easily! Are you tired about lack of knowledge to make 3D DirectX texts? Now you can do it easily with this resource that adds 3 simple ways to create a 3D DirectX text ! And if you know scripting, this will just simplify your work! The resource contains: Readme file. Example file that may work with play resource. Settings (modifiable on the Admin Panel). An Exported Function (for server and client). Download from MTA Community Thanks for downloading and hope this will be helpful for you
-
Download versions on MTA main page
12p replied to Arran's topic in Site/Forum/Discord/Mantis/Wiki related
That MTA version is the most stable there is. Nightly Updates are for people that wants to help with bugtracking, but most of MTA players don't want to see its MTA crashing a lot or something like that. -
You forgot something, proracer. addCommandHandler ("createped", function (player) local x,y,z = getElementPosition (player) ped = createPed (165,x,y,z) giveWeapon(ped, 31, 100, true) -- it will give ped an M4 with 100 ammo[b] AND WILL SET THE SLOT TO THAT WEAPON[/b] end) Otherwise it shouldn't work as well as Try wants.
-
thePlayer isn't an element, your code is wrong somewhere else.
-
Using some debugging may help to know what's the error there. broneskins = { [167]=true, [277]=true, [264]=true } -- бронерованные зомби noheadskins= { [70]=true, [108]=true, [128]=true, [188]=true, [259]=true } -- без головные зомби speedskins = { [92]=true, [162]=true, [206]=true, [209]=true, [212]=true, [229]=true, [230]=true } -- скоростные зомби fireskins = { [105]=true, [107]=true, [127]=true, [280]=true, [287]=true } -- огненные зомби function createZombieClass(thePlayer) --setTimer(createZombieClass,1000,1) if isElement ( thePlayer ) then outputChatBox ( "thePlayer element type: "..getElementType (thePlayer) ) --If this says player then just delete this line local idSkin = getElementModel (thePlayer) if idSkin == broneskins then triggerClientEvent (thePlayer,"onbronezombies", thePlayer) outputChatBox ( "1") elseif idSkin == noheadskins then setPedHeadless( thePlayer, true ) outputChatBox ( "2") elseif idSkin == speedskins then triggerClientEvent (thePlayer,"onspeedzombies", thePlayer) setPedStat ( thePlayer, 24, 200 ) -- но меньше жизек setElementHealth (thePlayer, 1000-(800-getElementHealth(thePlayer))) outputChatBox ( "3") elseif idSkin == fireskins then setPedOnFire ( thePlayer, true ) outputChatBox ( "4") end end end
-
Why people is so LAZY? Try, at least, to make a roleplay script by yourself.
-
You don't even know how it works. How do you expect to make a RP server without knowing how it works??? What if you find an error? FAIL!