Mimimiguel
Members-
Posts
146 -
Joined
-
Last visited
Everything posted by Mimimiguel
-
something like licenses i think
-
si bueno algo parecidoo, lo mirare a ver
-
look at this resource https://community.multitheftauto.com/index.php?p= ... ls&id=1253 to grow a player level you have to use a function, so use it with a timer setTimer(upgrade, 1000, 0 ) function upgrade( ) for k, v in ipairs(getElementsByType( "players" ) do data = getElementData( v, "exp" ) giveexp = data + 10 setElementData(v,"exp",giveexp) end end that should upgrade a level for every player every second
-
it works perfectly, thanks! gaved you credits you can close this topic
-
are you completely sure that your server is running? use /debugscript 2 while you start the resource and tell us the errors
-
Hello, today I was trying to make a radio gui using gui buttons and streams for the sound, I tested the streams before putting them here and it worked perfectly. I think that the problem resides on the event because the first text warning isnt shown... Here it is the code, I cant find the error: GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(249,100,315,390,"Radio",false) guiSetVisible( GUIEditor_Window[1], false ) GUIEditor_Button[1] = guiCreateButton(23,65,116,51,"Escuchar/parar Salvaje FM",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(182,65,116,51,"Escuchar/parar Los40 Principales",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(24,140,116,51,"Escuchar/parar Cadena Dial",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(183,253,116,50,"Escuchar/parar Cadena Ser",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(116,23,157,31,"Música:",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],0,200,50) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) guiSetFont(GUIEditor_Label[1],"sa-header") GUIEditor_Label[2] = guiCreateLabel(115,207,157,31,"Noticias:",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],0, 50, 200) guiLabelSetVerticalAlign(GUIEditor_Label[2],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[2],"left",false) guiSetFont(GUIEditor_Label[2],"sa-header") GUIEditor_Button[5] = guiCreateButton(24,253,116,50,"Escuchar/parar RNE",false,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(94,358,128,23,"Guardar radio",false,GUIEditor_Window[1]) GUIEditor_Button[7] = guiCreateButton(183,139,116,51,"Escuchar/parar Hit FM",false,GUIEditor_Window[1]) function toggleRadioGui( player ) if guiGetVisible( GUIEditor_Window[1] ) == false then showCursor( true, true ) guiSetVisible( GUIEditor_Window[1], true ) else showCursor( false, false ) guiSetVisible( GUIEditor_Window[1], false ) end end addCommandHandler("radio", toggleRadioGui) addEventHandler( "OnClientGuiClick", getLocalPlayer(), function( radio, state, x, y ) outputChatBox( "Aqui hemos llegado" ) -- first text message if source == GUIEditor_Button[1] then if getElementData( getLocalPlayer(), "radio" ) == false then -- si no esta con una radio encendida, ponemos la radio / if it isnt turned on, it is suposed to turn it on, else turn it off sound = playSound( "http://salvajefm.com/modules/mod_ngs_shoutcast/singleplaylist.php?ip=94.75.209.28&port=8188&format=ASX", false ) setElementData( getLocalPlayer(), "radio", true ) outputChatBox( "Estas escuchando salvaje fm" ) else stopSound( sound ) setElementData( getLocalPlayer(), "radio", false ) end elseif source == GUIEditor_Button[2] then if getElementData( getLocalPlayer(), "radio") == false then sound = playSound( "http://194.169.201.177:8085/live3.mp3", false ) setElementData( getLocalPlayer(), "radio", true ) else stopSound( sound ) setElementData( getLocalPlayer(), "radio", false ) end elseif source == GUIEditor_Button[3] then if getElementData( getLocalPlayer(), "radio") == false then sound = playSound("http://194.169.201.177:8085/liveDial.mp3", false ) setElementData( getLocalPlayer(), "radio", true ) else stopSound( sound ) setElementData( getLocalPlayer(), "radio", false ) end elseif source == GUIEditor_Button[4] then if getElementData( getLocalPlayer(), "radio") == false then sound = playSound("http://194.169.201.177:8085/liveser.mp3", false ) setElementData( getLocalPlayer(), "radio", true ) else stopSound( sound ) setElementData( getLocalPlayer(), "radio", false ) end elseif source == GUIEditor_Button[5] then if getElementData( getLocalPlayer(), "radio") == false then sound = playSound("http://rtve.stream.flumotion.com/rtve/radio1.mp3.m3u", false ) setElementData( getLocalPlayer(), "radio", true ) else stopSound( sound ) setElementData( getLocalPlayer(), "radio", false ) end elseif source == GUIEditor_Button[6] then toggleRadioGui() elseif source == GUIEditor_Button[7] then if getElementData( getLocalPlayer(), "radio") == false then sound = playSound("http://streaming.tst.es/stcasx/va90winlive2001/play.asx", false ) setElementData( getLocalPlayer(), "radio", true ) else stopSound( sound ) setElementData( getLocalPlayer(), "radio", false ) end end end ) Thanks in advice!
-
lo intente con la dinghy me salio eso jaja tras intentarlo con rc vehicles: ni si quiera carga la textura
-
Holaa, estoy intentando poner una modificación para poder usar la tabla de surf en el agua, el resultado ha sido el siguiente... ¿Hay alguna manera de hacerlo? no tengo ni idea de como puedo por que la idea de crear un objeto y poner el paisano encima iba a ser una chapuza.
-
Adding new cars via scripting (not replacing them)
Mimimiguel replied to Unknown76's topic in Suggestions
The same for skins would be also nice -
Hello! Well, i'm trying to use the texturizer module but the wiki's info about that module is empty, so if someone has any kind of information about the functions of that module please post them here or something like that. thanks!
-
Is it necesary if the interior is in "interior 0"? Anyway i'll try it and answer thanks for your support EDIT: Works perfectly, thanks again
-
It doesn't work and it also doesn't report any kind of bug via debugscript
-
and how can we trust on you?
-
Thanks! I need that 3 vehicles because I only want the player to enter in the ambulance interior for those 3 cars. EDIT: It still doesn't work
-
Hello, I am trying to script a vehicle interior but it doesn't work and debugscript doesn't report any trouble, here it is the script: addEventHandler("OnVehicleStartEnter", getRootElement(), function( player, seat, jacked, door ) local a1 = createVehicle( 416, 10, 0, 0 ) local a2 = createVehicle( 416, 20, 0, 0 ) local a3 = createVehicle( 416, 30, 0, 0 ) if door == 2 or 3 and source == a1 or a2 or a3 then cancelEvent() if source == a1 then setElementPosition(player, 2003.3, 2284.2, 1011.1) setElementDimension( player, 103 ) setElementData( player, "ambulance", 1 ) bindKey("num_5", "down", bajar) outputChatBox("Pulsa num_5 para bajar", player) -- "Use num_5 to get off the car" elseif source == a2 then setElementPosition(player, 2003.3, 2284.2, 1011.1) setElementDimension( player, 104 ) setElementData( player, "ambulance", 2 ) bindKey("num_5", "down", bajar) outputChatBox("Pulsa num_5 para bajar", player) -- "Use num_5 to get off the car" elseif source == a3 then setElementPosition(player, 2003.3, 2284.2, 1011.1) setElementDimension( player, 105 ) setElementData( player, "ambulance", 3 ) bindKey("num_5", "down", bajar) outputChatBox("Pulsa num_5 para bajar", player) -- "Use num_5 to get off the car" end end end ) function bajar( player ) ambulance = getElementData( player, "ambulance" ) if ambulance == 1 then ax, ay, az = getElementPosition( a1 ) setElementDimension( player, 0 ) setElementPosition( player, ax, ay, az ) elseif ambulance == 2 then ax, ay, az = getElementPosition( a2 ) setElementDimension( player, 0 ) setElementPosition( player, ax, ay, az ) elseif ambulance == 3 then ax, ay, az = getElementPosition( a3 ) setElementDimension( player, 0 ) setElementPosition( player, ax, ay, az ) end end thanks!
-
Ok then, lets wait , thanks!
-
sigue dando error "attempt to perform arithmetic on a nil value" edit: está dpm, gracias crack
-
Holaaa, estoy teniendo un problema para un comando en el que necesito hacer una cuenta: function arrest(theCop, target, time) local skinID = getElementModel ( theCop ) local targetplayer = getPlayerFromName(target) local wantedlevel = getPlayerWantedLevel(targetplayer) local tim = tonumber(tim) local time = tonumber(tim) * 1000 -- aquí hay un error if getElementModel(theCop) == 284 then if wantedlevel >= 1 then if (isElementWithinColShape(theCop, Arrestcolshape1) == true) and (isElementWithinColShape(targetplayer, Arrestcolshape1) == true) then setAccountData(getPlayerAccount(targetplayer), "jailtime", time) portjail(targetplayer) setPlayerWantedLevel(targetplayer,0) --exports.sql:query_assoc("INSERT"..jailtime.."INTO") setAccountData(targetplayer, "wantedlevel",0) outputChatBox("Detenido "..tonumber(tim).. "minutos.", targetplayer,255,0,0) outputChatBox("¡Arrestado "..tonumber(tim).." minutos!", theCop,0,255,0) else outputChatBox("Error.", theCop,255,0,0) end else outputChatBox("¡Este jugador no estaba siendo buscado!", theCop) end else outputChatBox("No eres ni policía ni agente federal.", theCop,255,0,0) end end addCommandHandler("arrest", arrest) me devuelve un error en la línea marcada, de que no puede hacer una cuenta sobre un nil value. Ayuda por favor!
-
well the name of the topic says everything
-
https://community.multitheftauto.com/index.php?p= ... ls&id=1705 ?
-
I think that mtasa isnt a business, ill never pay for a mode if i can do it
-
Ok i'll look at it, thanks
-
<!-- This parameter specifies the name the server will be visible as in the ingame server browser and on Game-Monitor. It is a required parameter. --> <servername>its name</servername> <!-- ONLY USE THIS PARAMETER IF YOU ARE SURE OF WHAT YOU ARE DOING - it is generally only needed for professional servers and should be left blank otherwise. This parameter specifies the IP to use for servers that have multiple IP addresses. If left blank, it will default to server's standard local IP address. --> <serverip></serverip> <!-- This parameter specifies the Maximum Transmission Unit or maximum packet size that the server will use. This will depend on the nature of your clients, as well as the network medium your server is connected to. --> <mtusize>1264</mtusize> <!-- This parameter specifies the UDP port on which the server will be accepting incoming player connections; default value: 22003. It is a required parameter. --> <serverport>22003</serverport> <!-- This parameter specifies the number of maximum player slots available on the server; default value: 32. It is a required parameter. --> <maxplayers>6</maxplayers> <!-- This parameter specifies whether the builtin http server will be used. Values: 0 - disabled , 1 - enabled ; default value: 1. Optional parameter. --> <httpserver>1</httpserver> <!-- This parameter specifies the TCP port on which the server will be accepting incoming http connections. It can be set to the same value as <serverport> . It is a required parameter if <httpserver> is set to 1. --> <httpport>22005</httpport> <!-- If set, this parameter specifies the external URL from which clients will be able to download needed resources ingame. Otherwise they will download them directly from the server. --> <httpdownloadurl></httpdownloadurl> <!-- This parameter specifies whether the client files for hosting on an external web server should be automatically copied into mods/deathmatch/resource-cache/http-client-files/ Only relevant if <httpdownloadurl> is set. Values: 0 - disabled , 1 - enabled ; default value: 1. Optional parameter. --> <httpautoclientfiles>1</httpautoclientfiles> <!-- This parameter limits the number of http connections each client can make. If you are using an external Apache web server, a lower figure such as 8 may be required to avoid download timeouts. A streamlined web server such as lighttpd, would benefit from the maximum setting of 32. (Note: If set to less than 32, pre 1.0.3 clients will be diverted to use MTA's inbuilt web server) Available range: 2 to 32. --> <httpconnectionsperclient>32</httpconnectionsperclient> <!-- This parameter specifies what types of checks the clients should make to ensure there has been no tampering with certain settings. Values: 0 - disabled , -1 - everything. default value: -1. --> <verifyclientsettings>-1</verifyclientsettings> <!-- Comma seperated list of disabled anti-cheats. e.g. To disable anti-cheat #2 and #3, use: 2,3 --> <disableac></disableac> <!-- Minimum client version. Clients with a lower version will not be allowed to connect. After disconnection, clients will be given an opportunity to download an update (if their client supports auto-update). If left blank, this setting is disabled and there are no restrictions on who can connect. Version numbers look like this: 1.0.4-9.01746.0 --> <minclientversion></minclientversion> <!-- Recommended client version. When connecting, if clients have a lower version, they will be given the option to download an update (if their client supports auto-update). If left blank, this setting is disabled. --> <recommendedclientversion></recommendedclientversion> <!-- This parameter can be used to make the server report to Game-Monitor master servers, allowing it to be visible in the ingame server browser. An additional UDP port needs to be available for this to work (value from <serverport> + 123 , so on a default <serverport> value 22003 the right port will be 22126 ). Available values: 0 - disabled , 1 - enabled. Optional parameter, defaults to 0. --> <ase>1</ase> <!-- This parameter allows you to disable LAN broadcasting. --> <donotbroadcastlan>0</donotbroadcastlan> <!-- If set, players will have to provide a password specified below, before they can connect to the server. If left blank, server doesn't require a password from them. --> <password>******</password> <!-- Specifies the location and name of the main server log file. If left blank, server won't be saving this file. --> <logfile>logs/server.log</logfile> <!-- As well as the main log file, login successes and failures are logged here for easy reviewing of security issues. If left blank, this file is not used --> <authfile>logs/server_auth.log</authfile> <!-- This parameter specifies the location and name of the Access Control List settings file. If left blank, server will use acl.xml file, located in the same folder as this configuration file. --> <acl>acl.xml</acl> <!-- Specifies the location and name of the debugscript log file. If left blank, server won't be saving this file. --> <scriptdebuglogfile>logs/scripts.log</scriptdebuglogfile> <!-- Specifies the level of the debugscript log file. Available values: 0, 1, 2, 3. When not set, defaults to 0. --> <scriptdebugloglevel>0</scriptdebugloglevel> <!-- Specifies the level of the html debug. Available values: 0, 1, 2, 3. When not set, defaults to 0. --> <htmldebuglevel>0</htmldebuglevel> <!-- Specifies the server frames limit. Minimum value: 25, default: 36. --> <fpslimit>45</fpslimit> <!-- Specifies the module(s) which are loaded with the server. To load several modules, add more <module> parameter(s). Optional parameter. --> <module src="mta_mysql.dll" /> <!-- <module src="sample_win32.dll"/> --> <!-- <module src="sample_linux.so"/> --> <!-- Specifies resources that are loaded when the server starts and/or which are protected from being stopped. To specify several resources, add more <resource> parameter(s). --> <resource src="admin" startup="1" protected="0"/> <resource src="helpmanager" startup="1" protected="0"/> <resource src="joinquit" startup="1" protected="0"/> <resource src="defaultstats" startup="1" protected="0"/> <resource src="mapcycler" startup="1" protected="0"/> <resource src="mapmanager" startup="1" protected="0"/> <resource src="parachute" startup="1" protected="0"/> <resource src="resourcebrowser" startup="1" protected="1" default="true"/> <resource src="resourcemanager" startup="1" protected="1"/> <resource src="scoreboard" startup="1" protected="0"/> <resource src="spawnmanager" startup="1" protected="0"/> <resource src="votemanager" startup="1" protected="0"/> <resource src="webadmin" startup="1" protected="0"/> <!-- play is the default freeroam gamemode. Remove the following line to prevent it from starting. --> <resource src="race" startup="1" protected="0"/>
-
hello! well, I have sreached over the whole web and I still can't make my mysql database work for mta, I have xampp installed, with the apache and the mysql servers running and the mta module loaded. so I don't know what to do, have I to insert anything in the meta.xml file or something like that? thanks EDIT: also configured the mtaserver.conf DEBUGSCRIPT ->error: attempt to call global 'mysql_connect' (a nil value) attempt to call global 'mysql_query' (a nil value) x2