-
Posts
58 -
Joined
-
Last visited
Everything posted by dam034
-
Dear users, I searched in the Internet and I found some mods for RPG, but they are dated 7-8 years ago. I'd to create a new gamemode (with tecnologies in 2017), with roleplay gaming, and to use mysql to store data. Some ideas to beginning? Thanks
-
Dear users, I'm trying to set via scripting the player's max health and health. I execute these commands: setPedStat(me, 24, 1000) setElementHealth(me, 1000) But when I try to retrieve my ped's current health, I get 200, also if the health's progress bar is full. Is this a bug? Or I done a mistake? Thanks
-
Thanks for the help! Another thing: where is the documentation about the "form" variable?
-
So I have to create a file with any extension (like json), and add it in meta.xml <html src="api.json" /> Is it right? So, if I understood right: I have to create an user in MTA console called "forapis" (or as I want), set its password and grant to the resource only the rights as I want to use in the API, avoiding security flaws. When I'll use php curl library to call the API, I'll call http://forapis:mypw@ip:port/resname/api?do=myaction. Did I understand well? Thanks
-
Yes, I understand. How can I grant the HTTP access to anyone only to this recource, and set HTTP authentication to visit the others? I want to remove the extension, can I? (e.g. http://server-ip:22005/myres/call?do=weather) Thanks
-
I have this questions: to visit the resource via web I need HTTP authentication? what is "form" variable? by force HTML has to be the API page? Thanks
-
Dear users, I want to create APIs for my MTASA Server, as FB apis o Google apis. Example: without an HTTP autenthication, requesting GET http://server-ip:22005/api?what=userlist I want to retrieve (in JSON) the list of the connected users to my server, or requesting POST http://server-ip:22005/api with fields what=wheater&number=4 I want to execute setWeather(4) on my server. Someone can help me how to create a resource which does this? Thanks
-
Dear users, today I thought of something I don't know if someone has already thought it before me. I want to create/develop a MTASA web client, and then playable in a web browser. Obviously the webmaster has to pass some parameters to the client (such as which server to connect, client name, etc...) Is there anyone who want to help me? Thanks
-
Hi, I want to take the position (x, y, z) and rotations (rx, ry, rz) of an existing element in the map of freeroam, not an element created by me. How can I do this? Thanks
-
Is it necessary to forward the port of ASE also if I don't wont to use it? Thanks
-
Hi, I have a MTA server on a VM, when a client connects to a server, it downloads the files needed to play (e.g. resources). In LAN all works good, out LAN the client doesn't download the files, in fact the bar of downloading remains to 0 Bytes. I have a NAT router and I have forwarded the port 22203 (of the game), it may be that I have to forward other ports? If necessary I can post the mtaserver.conf Thanks
-
But at least to select them?
-
Hi, I have a MTA server on a VM, when a client connects to a server, it downloads the files needed to play (e.g. resources). In LAN all works good, out LAN the client doesn't download the files, in fact the bar of downloading remains to 0 Bytes. I have a NAT router and I have forwarded the port 22203 (of the game), it may be that I have to forward other ports? Another problem: yesterday I've created a resource that destroy any ped who reaches the Area 69, from today it doesn't work, and also another resource. Why? If necessary I can post the two resources. Thanks
-
About getElementByID(), the wiki tells: "Note: The ID in this context is the value of the 'id' data item of the element (the id=".." attribute in the .map file), NOT the model ID, weapon ID or similiar." I need to select in a variable all the objects which have a model ID specified by me. Thanks
-
Hi, in the game I found 5 S.A.M. launchers, I want to select them by id in a LUA variable and set them unbreakable. How can I do? Thanks
-
Yes, I have seen the post of CristalMW, I can test that, at least until there is this feature (custom railway). Thanks for all
-
Okay, thanks anyway And if I want to edit the train line which in Cramberry Station exits from the station? Namely, to edit a existing train line... Thanks
-
I would create a new railway not drawn, because the train will run on the roads. Solidsnake14, why is it impossible? Thanks
-
Hi, I want to create a new railway in the map of freefroam, without the drawn track, only the "script" railway. In the linked image (http://img31.imageshack.us/img31/5343/p75.png), I colored in yellow the course of the "invisible" railway, when I can drive a train. How can I do this? Thanks
-
Thanks Solidsnake14, you are a very expert of MTA
-
Thanks Solidsnake14, it works Another thing: I want to remove the name of zone showed in Old English Text MT font when I enter a new zone of the game. In the linked screen I have drawn a red circle on it. Link: http://img707.imageshack.us/img707/9398/9t4.png How can I remove it? Thanks
-
It is downloaded from a website, and I have modified something. meta.xml <meta> <info author="Damiano M" version ="1.1.1" type ="misc" description="Contachilometri con km/h, mph, nome e salute del veicolo" /> <script src="speedo.lua" type="client" /> <file src="carattere.ttf" /> </meta> speedo.lua spfont = dxCreateFont("carattere.ttf", 15) function conta() if isPedInVehicle(localPlayer) == false then return end sx, sy, sz = getElementVelocity (getPedOccupiedVehicle(localPlayer)) kmhs = math.floor(((sx^2 + sy^2 + sz^2)^(0.5))*180) mphs = math.floor((((sx^2 + sy^2 + sz^2)^(0.5))*180)/1.6) health = getElementHealth (getPedOccupiedVehicle(localPlayer)) name = getVehicleName (getPedOccupiedVehicle(localPlayer)) currenthealth = math.floor(health/10) screenWidth, screenHeight = guiGetScreenSize() windowWidth, windowHeight = 300, 170 left = screenWidth/1.15 - windowWidth/4.5 top = screenHeight/1.15 - windowHeight/20 px, py, pz = getElementPosition(localPlayer) posizione = getZoneName(px, py, pz, false) dxDrawText ( " "..posizione, left , top -123, screenWidth +2, screenHeight , tocolor ( 0, 0, 0, 255 ), 1, spfont ) dxDrawText ( " #FF8040"..posizione, left -2, top-125, screenWidth, screenHeight -2, tocolor ( 0, 255, 255, 255 ), 1, spfont, "left", "top", false, false, false, true ) dxDrawText ( " "..tostring(name).." ", left , top -93, screenWidth +2, screenHeight , tocolor ( 0, 0, 0, 255 ), 1, spfont ) dxDrawText ( " "..tostring(name).." ", left -2, top -95, screenWidth, screenHeight -2, tocolor ( 0, 255, 0, 255 ), 1, spfont ) dxDrawText ( " "..tostring(currenthealth).."%", left , top -63, screenWidth +2, screenHeight , tocolor ( 0, 0, 0, 255 ), 1, spfont ) dxDrawText ( " "..tostring(currenthealth).."#00FF00%", left -2, top -65, screenWidth, screenHeight -2, tocolor ( 255, 12, 0, 255 ), 1, spfont, "left", "top", false, false, false, true ) dxDrawText ( " ___________________", left -2, top -62, screenWidth, screenHeight -2, tocolor ( 255, 0, 0, 255 ), 1, spfont ) dxDrawText ( " ___________________", left -2, top -60, screenWidth, screenHeight -2, tocolor ( 0, 0, 0, 255 ), 1, spfont ) dxDrawText ( " "..tostring(kmhs).."km/h", left , top -23, screenWidth +2, screenHeight , tocolor ( 0, 0, 0, 255 ), 1, spfont ) dxDrawText ( " "..tostring(kmhs).."#00FF00km/h", left -2, top -25, screenWidth, screenHeight -2, tocolor ( 0, 255, 255, 255 ), 1, spfont, "left", "top", false, false, false, true ) dxDrawText ( " "..tostring(mphs).."mph", left , top +2, screenWidth +2, screenHeight , tocolor ( 0, 0, 0, 255 ), 1, spfont ) dxDrawText ( " "..tostring(mphs).."#00FF00mph", left -2, top, screenWidth, screenHeight -2, tocolor ( 0, 255, 255, 255 ), 1, spfont, "left", "top", false, false, false, true ) end addEventHandler("onClientRender", root, conta) And there is the file carattere.ttf, which is the font file. The name of the vehicle is taken by getVehicleName(), I want to change this in the script of MTA. Thanks
-
E come faccio a non far fare la query iniziale a gamemonitor.com che dà codice http 302? Voglio proprio toglierla quella cosa. Voglio sapere se posso mettere tutte le resources che ho con la versione 1.3.1, compreso la freeroam.zip che ho modificato. Grazie