Jump to content

[UVA]Bart

Members
  • Posts

    359
  • Joined

  • Last visited

Everything posted by [UVA]Bart

  1. hum some good ideas am just trying to fix the last bug in ma login/ skin selection thing then finnishing ma bank and house script which shouldnt take long then a might attempt to make something like a level system like u said like once a player has a certain ammount of cash and kills then they level up and get a new gun or car or something
  2. what do u mean like what can the aim of the mode be ? just been playing on some servers and theres nothing to do other than piss about standing in places wating for u cash to go up! wheres the propper aim to mta gone to like it used to be in race
  3. well a have been thinking and a am a bit bored so has any one got any ideas that can make mta a bit fun a think this is in the right place as its to do with scripting but i have been working on a bank script, login script( with skin selector) that i will probably be releasing for the other servers to use that dont have such things as these. any ideas such as making it so people can buy any house in the game or having modes like call of duty or something.
  4. [UVA]Bart

    Searching Scripts

    i have a house script lol nearly finnished fo £10
  5. whats needed is for the mta team to create a massive db of lots of serials totally different, i have made a mini one, then when a player registers a account add them to the db, like instead of using a external website to create the serials hook there allready made system up to the db
  6. [UVA]Bart

    map time!

    i know save the actual length of the map to a ini then you can take away 00.00.01 every millisecond or whatever and add it to ini under a new name like currentmaptimeleft=blah and read it from there
  7. i have done something like this but not as a map file i just used a xml file then looped through vehicle node and find the subnode "id" once you found that then create the vehicle it worked ok for me but took for ever creating the xml mine looked something like this <vehicles> <vehicle id="333" posx="blah" posy="blah" posx="blah" rotx="blah" roty="blah" rotz="blah description="name of vehicle" myid="1" /> </vehicles>
  8. [UVA]Bart

    Gui help!

    niemi in your code you use getElementPosition ( source ) the source can only be used server side, to find the position of a player client side use getElementPosition ( getLocalPlayer() ) talidan has allready corrected it but a thought a would explain it cause am bored lol
  9. [UVA]Bart

    map time!

    if theres no way round it then add it to a ini in this format then take .01 of a second off it every .01 of a second but this means you will have to add every map induvidually [maptimes] mapname=00.00.00 for instance
  10. is there a way to create a file client side thats hidden, if there is a way to do that then cant there be a xml or something and each server gives a player a seperate serial like <serials> <server1 serial="blah"/> <server2 serial="blah2"/> </serials> and then just each server when a player joins check to see if the server has given the player teh serial or not and have one big server database to reduce the risk of having 2 serials the same, kind of like your own mini serial system for your own server
  11. cant you make a image of a phone with out the numbers, and then create labels on the buttons for instance 1,2,3 and so on then use onGuiClick or what ever it is to check what label you have clicked on to get the correct digits to show on the phone screen, a memo could be good for displaying things, and would fit behind the image nicely cause its square init ?
  12. I got bored this afternoon so i decided to finnished the fuel script, any bugs please can you post in this topic and any ideas sorry its taken a long time to get the new one out but i had problems with the sql and myjob anyway you can download the fuel script 2 here Fuel Script 2
  13. try this a think it will work a just edited it a bit unfortunatly i cannot test cause my gta wont install function weaponSwitchDisableMinigun ( previousWeaponID, currentWeaponID, thePlayer ) --when a player switches his weapon if (currentWeaponID == 38) then --if the weapon ID is minigun elseif ( isAdminAccount( getClientAccount ( thePlayer ) ) == true ) then toggleControl ( source, "fire", true ) --enable it elseif ( isAdminAccount( getClientAccount ( thePlayer ) ) == false ) then toggleControl ( source, "fire", false ) --disable the fire button else --otherwise if ( currentWeaponID ~= 38 ) then toggleControl ( source, "fire", true ) --enable it end end end
  14. i made one ages ago lol all you need to do is bind one key i had "0" on my server, which added the upgrade to my car if it wasnt on the car allready, if it was on the car it then removed it, and you then once added the upgrade just use your usual key to use the nos
  15. why do you need f3 and lmb ? cant u just bind f3 down check if nitro is on, if its not put it on, if it is turn it off ? that would be the most locical thing to do wouldnt it ?
  16. i wasnt using nicks i was using serials, but its broken in this version which i stated.
  17. thats a pain in the ass to make, altho i have not made freeroam i made 3 things just never released it lol need to do a bit more work on it lol
  18. i would create ma own xml file with my own admin list, then loop through the admin node and see if the players serial is in the xml if it is then do the minigun thing. "0000-0000-0000-0000"/> "0000-0000-0000-0000"/> but the serial thing is broken and i allways do it the wrong way accoring to most people
  19. if ur after kicking a person from irc use $nick
  20. do you store in a table them write the table to sql ? before the server shutsdown and load it in to a table when the server starts?
  21. i think this is wrong addEventHandler ( "ColHit", getResourceRootElement (getThisResource() ), -- ...or in this? function TRUCK_GUI () TruckWindow = guiCreateWindow(378,251,287,114,"Job: Truck Driver",false) TruckButtonYes = guiCreateButton(0.2265,0.693,0.2334,0.2281,"Yes!",true,TruckWindow) TruckButtonNo = guiCreateButton(0.5331,0.693,0.2369,0.2281,"No!",true,TruckWindow) TruckLabel = guiCreateLabel(0.2056,0.2018,0.6655,0.2895,"Want to deliver some cargo ?",true,TruckWindow) guiLabelSetVerticalAlign(TruckLabel,"top") guiLabelSetHorizontalAlign(TruckLabel,"left",false) showCursor ( true ) end ) addEvent ( "ColHit" ) i think it needs to be addEvent ( "ColHit" ) addEventHandler ( "ColHit", getResourceRootElement (getThisResource() ), -- ...or in this? function TRUCK_GUI () TruckWindow = guiCreateWindow(378,251,287,114,"Job: Truck Driver",false) TruckButtonYes = guiCreateButton(0.2265,0.693,0.2334,0.2281,"Yes!",true,TruckWindow) TruckButtonNo = guiCreateButton(0.5331,0.693,0.2369,0.2281,"No!",true,TruckWindow) TruckLabel = guiCreateLabel(0.2056,0.2018,0.6655,0.2895,"Want to deliver some cargo ?",true,TruckWindow) guiLabelSetVerticalAlign(TruckLabel,"top") guiLabelSetHorizontalAlign(TruckLabel,"left",false) showCursor ( true ) end ) but im not certain, does it create the gui just for one person ?
  22. use a sql data browser to see whats in the table and add columns if your just using it for your server, google sql data browser then open the registry.db which can be found in the mta folder thats if you want another bash at it, when i was learning it i gave up then churchill gave me the data browser link and its soo much easier lol
  23. i think line 64 error a think addEventHandler ( "onVehicleExplode", getRootElement (), vehicleExplode ) function vehicleExplode () if source == van then outputChatBox ( "You have destroyed the cargo! Go out!", source, 255, 0, 0 ) endRound() end end needs to be function vehicleExplode () if source == van then outputChatBox ( "You have destroyed the cargo! Go out!", source, 255, 0, 0 ) endRound() end end addEventHandler ( "onVehicleExplode", getRootElement (), vehicleExplode ) and line 12 error addEvent ( "SPECIAL_EVENT" ) addEventHandler ( "SPECIAL_EVENT", getRootElement (), TruckMission ) function TruckMission ( target ) local x = getElementData ( target, "posX" ) local y = getElementData ( target, "posY" ) local z = getElementData ( target, "posZ" ) local rx = getElementData ( target, "rotX" ) local ry = getElementData ( target, "rotY" ) local rz = getElementData ( target, "rotZ" ) local model = getElementData ( target, "model" ) --id local platetext = getElementData ( target, "plate" ) --plate text local colours = getElementData ( target, "colors" ) --colours of vehicle local pj = getElementData ( target, "paintjob" ) --paintjob local upgrades = getElementData ( target, "upgrades" ) --paintjob ---seperate the colours string and get specific colour ids local col1 = gettok ( colours, 1, 44 ) local col2 = gettok ( colours, 2, 44 ) local col3 = gettok ( colours, 3, 44 ) local col4 = gettok ( colours, 4, 44 ) --if any of them are "ran", then make them into a random id if col1 == "ran" or col1 == false then col1 = randInt(0,15) end if col2 == "ran" or col1 == false then col2 = randInt(0,15) end if col3 == "ran" or col1 == false then col3 = randInt(0,15) end if col4 == "ran" or col1 == false then col4 = randInt(0,15) end --if any of the rotations are not specified, make them 0 if rx == false then rx = 0 end if ry == false then ry = 0 end if rz == false then rz = 0 end --finally, create the vehicle and define it as van if ( platetext ) then van = createVehicle ( model, x, y, z, rx, ry, rz, platetext ) else van = createVehicle ( model, x, y, z, rx, ry, rz ) end --if a paintjob was specified, add it if ( pj ) then setVehiclePaintjob ( van, pj ) end --if there were any mods if ( upgrades ) then --split the upgrades into a table allUpgrades = split ( upgrades, 44 ) for k,v in ipairs(allUpgrades) do --loop through the table addVehicleUpgrade ( van, v ) --and add each upgrade end end vanMarker = createMarker ( x, y, z, "checkpoint", 1.5, 255, 255, 255, 255 ) attachElementToElement ( vanMarker, van ) createBlipAttachedTo ( van, 55 ) end needs to be function TruckMission ( target ) local x = getElementData ( target, "posX" ) local y = getElementData ( target, "posY" ) local z = getElementData ( target, "posZ" ) local rx = getElementData ( target, "rotX" ) local ry = getElementData ( target, "rotY" ) local rz = getElementData ( target, "rotZ" ) local model = getElementData ( target, "model" ) --id local platetext = getElementData ( target, "plate" ) --plate text local colours = getElementData ( target, "colors" ) --colours of vehicle local pj = getElementData ( target, "paintjob" ) --paintjob local upgrades = getElementData ( target, "upgrades" ) --paintjob ---seperate the colours string and get specific colour ids local col1 = gettok ( colours, 1, 44 ) local col2 = gettok ( colours, 2, 44 ) local col3 = gettok ( colours, 3, 44 ) local col4 = gettok ( colours, 4, 44 ) --if any of them are "ran", then make them into a random id if col1 == "ran" or col1 == false then col1 = randInt(0,15) end if col2 == "ran" or col1 == false then col2 = randInt(0,15) end if col3 == "ran" or col1 == false then col3 = randInt(0,15) end if col4 == "ran" or col1 == false then col4 = randInt(0,15) end --if any of the rotations are not specified, make them 0 if rx == false then rx = 0 end if ry == false then ry = 0 end if rz == false then rz = 0 end --finally, create the vehicle and define it as van if ( platetext ) then van = createVehicle ( model, x, y, z, rx, ry, rz, platetext ) else van = createVehicle ( model, x, y, z, rx, ry, rz ) end --if a paintjob was specified, add it if ( pj ) then setVehiclePaintjob ( van, pj ) end --if there were any mods if ( upgrades ) then --split the upgrades into a table allUpgrades = split ( upgrades, 44 ) for k,v in ipairs(allUpgrades) do --loop through the table addVehicleUpgrade ( van, v ) --and add each upgrade end end vanMarker = createMarker ( x, y, z, "checkpoint", 1.5, 255, 255, 255, 255 ) attachElementToElement ( vanMarker, van ) createBlipAttachedTo ( van, 55 ) end addEvent ( "SPECIAL_EVENT" ) addEventHandler ( "SPECIAL_EVENT", getRootElement (), TruckMission ) i think but am usually wrong
  24. i have used xml to make a account system, really i think you shoudl learn sql or make a sql account system, i have moved on to sql for my fuel script and its faster, only problem you cannot add new columbs to the table well when i tried it wouldnt let me and with sql u dont have to loop ither
×
×
  • Create New...