Jump to content

skybad

Members
  • Posts

    68
  • Joined

  • Last visited

Everything posted by skybad

  1. Hello there, this is my server side script, and my player number does not change it's allways the same when. tMensagems = 5 MensagensInfo = { "The are, #FF0000"..getPlayerCount().."#FFFFFF players in the server", "Welcome the server", } function messages() outputChatBox (MensagensInfo[ math.random( 1,#MensagensInfo ) ] ,getRootElement(),255,255,255,true) end setTimer(messages, tMensagems * 600, 0) Can you guys help me fixing this?, I have for example 3 players in someone joins or leaves with will keep telling that there are 3 players and not the correct amount
  2. Hello there, anyone know how can I clean both files? Or download cleaned ones in order to start without accounts etc...?
  3. Hello i have one person on skype wich sells some scripts i need to know is someone have bought anything from him and if we can trust on him his skype is: mtajordan i think he have one account on this forum too, just tell me what experience with him you guys have please.
  4. thanks i will look at it
  5. Can someone help me locking accounts by serial for the player only access on his account on his computer?
  6. On this line "outputChatBox ("Este local é Radioativo, recomenda-se uso de roupa especial!",hitElement,255,255,255,true)" When the player enter in the area the outputChatBox doesn't work local colradiat = createColCuboid(1648.9276, 2820.2937, -31.4780, 805.5, 581, 90) local zoneeeeee = createRadarArea (1648.9276, 2820.2937, 805.5, 581, 255,0,0, 255 ) local player = getLocalPlayer() function onPlayerIntroareaRadiativa(theElement) if theElement == getLocalPlayer() then outputChatBox ("Este local é Radioativo, recomenda-se uso de roupa especial!",hitElement,255,255,255,true) triggerEvent("vignetTte", getLocalPlayer()) playerentro = true end end addEventHandler("onClientColShapeHit", colradiat, onPlayerIntroareaRadiativa)
  7. Hello im getting this error in the code Unexpected symbol near '<' on the line 3, 10 theres is the code: function checktemp(thePlayer) local temp = getElementData(thePlayer,"temperature") if temp > 38 or < 37 then setTimer(sangramento,10000,0) end end function sangramento(thePlayer) local temp = getElementData(thePlayer,"temperature") if temp > 38 or < 37 then outputChatBox("[ATENÇÃO]Você tem que usar um heat pack, a sua temperatura não está a 37Graus",thePlayer) outputChatBox("[ATENÇÃO]Sua temperatura: ".. getElementData(thePlayer,"temperature") .." Você poderá morrer, caso não normalise.",thePlayer) setElementData(thePlayer,"blood",getElementData(thePlayer,"blood") - 10) checarmorte() else cancelEvent() end end function checarmorte(thePlayer) if temp >= 41 or temp <= 30 then KillPed(thePlayer,thePlayer) setElementData(thePlayer,"blood",-666) end end
  8. Meu código é normal, é o mesmo que se você apagar algo no mapa e salvar e depois colocar a pasta do mapa que foi salvo num servidor
  9. skybad

    Map Disappear

    Hello, i think this place is the correct for this post, but if not sorry My problem is on Map Editor when i remove one map and press F5 it's all okay, but when i put the new map on the server, the map disappear in some angles i don't know what i need to do to fix it
  10. Estou com problemas eu quando removo um edifício no map editor e vou testar no próprio map editor esta tudo bem, mas quando meto no servidor mesmo zonas do mapa em certos ângulos da camera desaparecem. Alguem sabe como reparar?
  11. Hi i need to know if its possible block the command "reconnect" and "quit"
  12. Bahh i can't but thanks for the help guys
  13. Is giving this error: script/sv.lua:7: Bad argument @ 'addCommandHandler' [Expected function at argument 2, got nil] I will post the code: commands = {} commands.engine = "setengine" newcommands = {} newcommands.engine = get ( "engine" ) or commands.engine addCommandHandler(newcommands.engine, pack) function pack(thePlayer) local account = getPlayerAccount(thePlayer) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Everyone" ) ) ) then --Player Data setElementData(thePlayer,"blood",12000) end end And the meta.xml file <meta> <script src="sv.lua" type="server" /> <settings> <setting name="*engine" value="setengine" friendlyname="test1" group="test" examples="setengine" desc="TestT" /> </settings> </meta>
  14. okay i will try somwthing simillar to that and i will port here if works or if give errors
  15. Yeah i know that but how i made it for addCommandHandler? hi know i can make smething like this: Server Side colorCodesDefault = { } colorCodesDefault.colorcode1 = "#FF7300" colorCodesDefault.colorcode3 = "#FF7300" colorCodesDefault.colorcode2 = "#DBD7D7" colorCodes = { } colorCodes.colorcode1 = get ( "colorcode1" ) or colorCodesDefault.colorcode1 colorCodes.colorcode2 = get ( "colorcode2" ) or colorCodesDefault.colorcode2 colorCodes.colorcode3 = get ( "colorcode3" ) or colorCodesDefault.colorcode3 Meta.xml <setting name="*colorcode1" value="#AD505C" friendlyname="Prefix color" group="Colors" examples="#AD505C" desc="Color of the prefix" /> <setting name="*colorcode2" value="#AD505C" friendlyname="Nick color" group="Colors" examples="#AD505C" desc="Color of the nickname" /> <setting name="*colorcode3" value="#DBD7D7" friendlyname="Message color" group="Colors" examples="#DBD7D7" desc="Color of the message" /> Can someone make an example like the this one colorCodesDefault = { } colorCodesDefault.colorcode1 = "#FF7300" colorCodes = { } colorCodes.colorcode1 = get ( "colorcode1" ) or colorCodesDefault.colorcode1 but for commandHandler
  16. Hello, i need to know is it's possible put the addCommandHandler function in meta.xml file to change the command in game using admin panel and then settings, because if i want to change the command i need to edit the script and then restart the script for players use the new command, and i don't want to restart the script i want change it on Admin panel, btw the script is server side script Something like this: There i can change for true or false colored names in socreboard...
  17. i want ask if is possible set a texture only for one car like this example, cars are registred in one database with ids so examle elegy id 2 and elegy id 3 is possible put a spoiler texture on elegy 2 but for dont appear on elegy 3?
  18. So the people will lost lots of resources in de community because the most of them are compiled
  19. Okay can someone tell me what i need to do when it appends: WARNING: gps-system c_gps.lua is invalid and will not work in future versions. Please re-compile at https://luac.multitheftauto.com/ I need update the file? Some resources in the community are compiled so how i will fix it? If i put the compiled file in https://luac.multitheftauto.com/ this will fix the file or i need to original file? I got 46 errors like that Oh and sorry if this is the wrong place to post this but i think it will be helpfull for others when someone reply
  20. Boas noites, eu preciso de ajuda porque comprei uma maquina vps, ja instalei o MTA utilizo o Putty para aceder a maquina e o meu problema é que não sei como deixar o servidor sempre online alguem me pode explicar como é?
  21. Hello i need help for config the FTP on my VPS cuz i want acces from my home to put resources inside the server
  22. Someone can explain me how to install FTP on linux? and how to access it?
  23. /home/mta# apt-get install libreadline5 Reading package lists... Done Building dependency tree... Done Package libreadline5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: readline-common E: Package 'libreadline5' has no installation candidate System Is Debian 6 32Bits can someone help me
×
×
  • Create New...