Jump to content

Syntrax#

Members
  • Posts

    272
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Syntrax#

  1. **Bump** RPG gamemode is currently winning (i'm not going for a DM or DD server since those aren't quite popular due the high ammount of available servers) I can consider making a MG server after the RPG project has been done or any other things.But now i will stick to RPG since i'm the only developer in the team (i'm lonely xD) To all RPG servers look out there is a new opponement coming
  2. Hello, I've a question regarding detection of which colshape has been hit.I'm currently working on a mysql Housing script but the problem right now is that i don't know how to know which colshape has been hit since it's multiple colshapes with the same name due the fact it's done with ipairs from the mysql results. function getConnection() connection = dbConnect( "mysql", "dbname=fghousing;host=localhost", "root", "", "share=1" ) if ( connection ) then -- The connection failed outputDebugString("Connected to the MySQL server") local data = dbQuery(connection, "SELECT * FROM housing" ) result = dbPoll( data, -1 ) if result then outputDebugString("Results has been given") for i, v in ipairs(result) do if tonumber(v['Property']) == 1 then houseIcon = createPickup(v['Ix'], v['Iy'], v['Iz'], 3, 1272, 0) houseCol = createColCircle ( v['Ix'], v['Iy'], 2 ) setElementID ( houseCol, v['Adress'] ) setElementData(houseCol, "Adress", v['Adress']) setElementData(houseCol, "Tax", v['Tax']) setElementData(houseCol, "Price", v['Price']) setElementData(houseCol, "City", v['City']) setElementData(houseCol, "BuyDate", v['BuyDate']) setElementData(houseCol, "Owner", v['Owner']) addEventHandler ( "onColShapeHit", houseCol, onHousingPick ) elseif tonumber(v['Property']) == 2 then appartmentIcon = createPickup(v['Ix'], v['Iy'], v['Iz'], 3, 1273, 0) appartmentCol = createColCircle ( v['Ix'], v['Iy'], 2 ) addEventHandler ( "onColShapeHit", appartmentCol, onHousingPick ) elseif tonumber(v['Property']) == 3 then headquarterIcon = createPickup(v['Ix'], v['Iy'], v['Iz'], 3, 1274, 0) headquarterCol = createColCircle ( v['Ix'], v['Iy'], 2 ) addEventHandler ( "onColShapeHit", headquarterCol, onHousingPick ) elseif tonumber(v['Property']) == 4 then bussinessIcon = createPickup(v['Ix'], v['Iy'], v['Iz'], 3, 1275, 0) bussinessCol = createColCircle ( v['Ix'], v['Iy'], 2 ) addEventHandler ( "onColShapeHit", bussinessCol, onHousingPick ) elseif tonumber(v['Property']) == 5 then garageIcon = createPickup(v['Ix'], v['Iy'], v['Iz'], 3, 1276, 0) garageCol = createColCircle ( v['Ix'], v['Iy'], 2 ) addEventHandler ( "onColShapeHit", garageCol, onHousingPick ) end if tonumber(v['Interior']) == 1 then --interiorMarker = createMarker(v['Mx'], v['My'], v['Mz'], "cylinder", 1, 180, 0, 0, 255) elseif tonumber(v['Interior']) ~= 1 then interiorMarker = createMarker(v['Mx'], v['My'], v['Mz'], "cylinder", 1, 0, 204, 102, 255) end if tonumber(v['Garage']) == 1 then elseif tonumber(v['Garage']) ~= 1 then interiorMarker = createMarker(v['Gx'], v['Gy'], v['Gz'] + 1.5, "arrow", 1, 0, 204, 102, 255) end end else outputDebugString("Unable to connect to the MySQL server") end end end addEventHandler("onResourceStart",resourceRoot,getConnection) function insertValue(Adress,Owner,BuyDate,Price,Tax,City,Property,Interior,Garage,Ix,Iy,Iz,Mx,My,Mz,Gx,Gy,Gz) if connection then dbExec( connection, "INSERT INTO Housing VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", Adress, Owner, BuyDate, Price, Tax, City, Property, Interior, Garage, Ix, Iy, Iz, Mx, My, Mz, Gx, Gy, Gz ) end end addEvent("onHousingCreate", true) addEventHandler("onHousingCreate", root, insertValue) function onHousingPick(thePlayer) name = getElementData(houseCol, "Adress") owner = getElementData(houseCol, "Owner") price = getElementData(houseCol, "Price") tax = getElementData(houseCol, "Tax") city = getElementData(houseCol, "City") BuyDate = getElementData(houseCol, "BuyDate") outputDebugString(name.. ", "..owner.." ,"..price.." ,"..tax.." ,"..city..", "..BuyDate.."") --triggerClientEvent(thePlayer, "onHousingPickup", localPlayer, name, owner, price, tax, city, buyDate) end
  3. Bruhhh just stay in SAPD:FR mate no hate here
  4. Hello MTA Community, i've a question regarding what the players actually want, What type of servers and etc.That's why i'm setting up this poll to give you the possibility to make your dreams maybe come reality.I will be scripting this on my own, the servertype with the most votes wins.(Keep in mind everything will be written from scratch and the final release of the server will be around Summer this year) Do you have an idea feel free to share it down below and don't forget to leave a vote The final server type will be chosen this saturday regards, Syntrax# (Developer / Mapper / Modeller )
  5. what not using localPlayer ?
  6. There is none of this on the community right now, but maybe you should hire a scripter or something.Or use the RPG spawn panels that can be found on the community
  7. setPedAnimation( Element, " ped ", "WOMAN_walknorm") - Element = Player or Ped - "ped" = block where you can find the required animation - "WOMAN_walknorm" = required animation name Animation block link : https://wiki.multitheftauto.com/wiki/Animations
  8. Maybe add client and server to the names since you are trying to call one export while there are 2 results for this.
  9. Hydra with rustler if possible, Try to make an old fighter jet
  10. You should definitly tryout to get the Watchdogs 2 map.It's freaking dope and unique due the fact nobody has it imported in mta yet.I know it will be a huge task but everything is possible with a little bit of research
  11. it's pretty obviously that Solidsnake14 took the right decisssion.Everyone knows that that was the WSS leaked police script
  12. Again a WSS rip off, seriously stop using leaked scripts first of all to request help.
  13. Syntrax#

    Sneak

    Why clientside instead of serverside, You don't want the others to see what walking style you have?
  14. Syntrax#

    Help

    Yes it's obviously WSSpolice, Considering your scripting knowledge it's pretty clear that this is a leaked script nad you are just claiming that this is yours. And it's not bugged it's a quick simple fix, if you aren't able to fix this how did you create the script at all
  15. Syntrax#

    Help

    Sorry but this is like every other server. They are making use of the WSS police script, it's pretty obviously that this guy is making usage of the leaked WSS scripts.So don't expect any help from me.If you need help with something make sure you aren't asking them to fix things in leaked scripts, and as server owner it's required that you know how to script incase something goes wrong. I consider this topic useless since you are requesting us to fix a leaked WSS script
  16. Try to use xml to save the current selected state https://wiki.multitheftauto.com/wiki/XmlCreateFile
  17. Hello community, I'm Syntrax# and i'm an average scripter, not having the best knowledge but it's good enough to make scripts from scratch and make something unique and awesome.Anyway let's get to the thing i wanted to ask.As you already saw in the title i'm searching for the best method to load in custom map models.i know we can just import those with the standard mta function but that causes huge problems when uploading big maps such as Gostown 7.That's why i wanted to know a more efficient method to load it objects. Should i load in objects within range or? It would be nice if someone gave me the required functions so i can work on the script myself.I don't want a complete scripts only a method that shows that the map will not bug / flicker due the mta limit regards, Syntrax# (FG:RPG Developer)
  18. Syntrax#

    Project 2DFX

    Well it's possible, what about making a corona table with all positions / colors / sizes and load in the coronas that are within a range of 500-800
  19. Well it can be, but it's up to you to add the ability to add the Type selection
  20. https://community.multitheftauto.com/index.php?p=resources&s=details&id=1514
  21. Try searching on https://community.multitheftauto.com/index.php?p=resources
  22. Syntrax#

    NEW MAP MTA

    Nice mapping, did you model this? Anyway it's worth it, maybe i can improve some things within the mapping or expand it
×
×
  • Create New...