Jump to content

Taalasmaa

Members
  • Posts

    197
  • Joined

  • Last visited

Everything posted by Taalasmaa

  1. It saves now, but when login, it don't setElementData to banshee... ON BUY: setElementData( thePlayer, "car", "banshee"); ON QUIT: local playerData = getElementData ( source, "car" ) setAccountData ( playeraccount, "car", playerData ) FROM ACCOUNTS: <account name="Taalasmaa" password="****************HIDED" ip="*********HIDED"> <string_data bank.balance="0" teamName="Police" car="banshee" /> <number_data skin="10" weapon="0" ammo="1" /> account> ITS STORED TO ACCOUNT ON LOGIN: local playerData = getAccountData ( playeraccount, "car" ) if ( playerData ) then setElementData( source, "car", playerData ); NO ERRORS I really need help, thanks EDIT: Working if don't reconnect, so script is working, but save isn't
  2. Hi, I'm finally doing a car shop.. I have basic GUI Window and now I need to test a save. I also maked spawner for it. It's working now, you can spawn car which you boughht before, but now I need to make save for it. I'm not really good with saves. setElementData ( thePlayer, "boughtcar",1) If players buy banshee it sets element data to "banshee" and of course spawner is working like: if (getElementData ( source, "boughtcar" ) == 1) then --- Create vehicle next to player.. This is already done. ----- -- And of course if it's other car elseif (getElementData ( source, "boughtcar" ) == 2) then --- Create vehicle infernus How can I store setElementData ( thePlayer, "boughtcar", 1 ) this to players account??? Or save it?? I'm not good with saves is it going like this: local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local data = getElementData ( source, "boughtcar" ) setAccountData ( playeraccount, "car", data) and when player login: local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local carData = getAccountData ( playeraccount, "car" ) if ( carData ) then setElementData ( thePlayer, "boughtcar") So Like I said i'm not good with saves AT ALL. Help would be awesome! EDIT: Is it better way to save to XML or SQL, If it's give me ideas how to do it.
  3. It's showing only when airbrake enabled.
  4. Difference is, that this is working airbrake, because I tested airbrake which was already there and it didn't worked. (oh, and I tried to convert it to mta 1.0, but didn't work) So, I deciced to make a new one for my haxMode server. And I don't wanna praise myself, but this is better airbrake and I deciced to make it for puplic, so other servers can use it too.
  5. Hello, I deciced to release my airbrake script DOWNLOAD: https://community.multitheftauto.com/index.php?p=resources&s=details&id=489 IMAGE: Press F2 to enable airbrake or do /airbrake You can easily disable it by pressing F2 or do /airbrake Controls: Numpad_- To Down Numpad_+ To Up Numpad_8 To Forward Numpad_2 To Backward Numpad_4 To Left Numpad_6 To Right When you enable airbrake it bring up a nice menu with controls. Also when disable.. Menu will be hided Well, Report any bugs for me. If you have questions contact me. Enjoy! Btw. This is my first puplic release
  6. Thanks for reply, i'm going to plan something.
  7. Okay, so hello. I maked alcohol script, there's alcohol"meter" and you can drink something like vodka and your bar goes up, when the bar is up to 90% you will be drunk. Script is ready, but is there some way to make shaking camera, so it's looking like drunk. This is just my problem, I didn't find camera shake things from mta development. I'm really glad if someone know how to make shaking camera. + if there isn't way to do camera shake, give ideas how to make it looking like drunk Thanks. Greetings Talasma
  8. THANKS ROBBIE! Now I finally can open my rpg server soon ! Big thanks
  9. Hello, I just have a one little problem.. I maked jobs, with nice menu and I maked, that it will set camera look at to the police station when you click "police" button in menu.. It's working 100%, but when it spawn it doesn't set camera look to the player, camera view is still at police station Hjälp? thanks guys I'm very glad if someone can help with this problem!
  10. New code: GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} function guihelp () if guiGetVisible(GUIEditor_Window[1]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) else GUIEditor_Window[1] = guiCreateWindow(167,126,554,421,"Grasiel Clan Server -",false) See_Factions = guiCreateButton(0.1047,0.1116,0.3664,0.247,"See Factions",true,GUIEditor_Window[1]) How_To_Join = guiCreateButton(0.0993,0.4181,0.3664,0.2565,"How To Join",true,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(0.5072,0.1188,0.4224,0.2447,"Being A Criminal",true,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(0.0614,0.8361,0.8412,0.1164,"We Recomend To See Being A Criminal and Factions",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) guiSetVisible(GUIEditor_Window[1],true) showCursor(true) end end addCommandHandler("info",guihelp) THERE IS 100% WORKING! AND, please learn scripting! I just help you at this time, if you willnot to start learning some scripts, you will NOT get my help anymore. EDIT: Don't ask now how to open new window when button is clicked!
  11. STUPID!!! Do your own code! This isn't for copy you gay! Do your own code, we don't tell it for you! EDIT: Do not copy this code, there's my copyrights, i'm using this script in my server, so I don't wanna, that other server uses this. I know, that you willnot use this code, if you have respect for mta.
  12. Hello! My linux server is giving download error all the time. If I start any resource it will give download error.. It's just give something like this: "download error 0-52" "empty reply from server" I'm getting angry with this problem. Also once helped, that I changed my name, but after 2 min it gave download error again. And It's also giving download error when resources aren't on, sometimes it does not give download error, but almost all time. What's going wrong? Thanks! --- bugtracker --- http://bugs.mtasa.com/view.php?id=4930
  13. I can do these for free. Send me your msn..
  14. .. I know what are you trying to say, but I just need real help, What does it influence if someone put a link to mta development, or topic where u have to learn newbies things Lol, 50p, If u really wanna help, put link where is related things.. 50p thing, that i'm newbie who cannot script at all. So 50p tell me how did I make working truck missions exept one point, How Did I do working clue's for my server??? Hey cmon guy, Try give some real links for sites where is really related things .. I don't wanna be angry and replying bad things like don't reply for me, but I just wanna some real things.. Well, thanks if somebody can help with this problem...
  15. 50p... 50p... This script is working fine exept ONE point... You're trying to say bullshit for me.. Please don't reply to my topic anymore. Do you understand.. Just one point.
  16. 50p, do you know what... You're just posting negative things for my threads... I don't need your replies. How many time do I have to say it?? I wont need your stupid answer, I think, that I can't make truck missions if I cannot script at all.
  17. Hello, I have little problem in my truck missions which I did make There's piece of code function Stuff () End1 = createMarker ( 2221.34, -1114.29, 25.83, "cylinder", 1.5, 255, 255, 0, 170 ) guiSetText ( mission, "Carl Wanna New Truck! Deliver This For Him!" ) end addCommandHandler ( "mission", Stuff ) This is just piece! If I type in marker "mission" Car will spawn for me and it create blip to radar+random message things... This is just example code... And the problem is there: This end1 marker.. It's marker where you have to delivere truck But If I go to this marker nothing isn't happening There's code which I tried function onEnd1Hit ( player ) if source == End1 then local vehicle = getPlayerOccupiedVehicle ( player ) if vehicle then outputChatBox ( "Mission Passed, Carl Is happy now. There's $20000", player, 255, 255, 0 ) givePlayerMoney ( 20000 ) blahblah There is destroy elements things... end end end addEventHandler ( "onMarkerHit", End1, onEnd1Hit ) What's going wrong?? So, I just wanna fix, that when player hit to finish marker (end1) then He get his moneys etc.. NOTE: This is just piece of code.. It's working fine, but end marker isn't working.. Help? Edit: There's warning: truck.lua @ bad argument @ 'addEventHandler' line - 22 I tried too triggerclientevent+triggerserverevent, then it didn't give warning, but didn't work
  18. Hello, I maked really awesome team script, there is teams like "groves" "ballas" etc.. And if grove kill ballas they receive some money and if ballas kill groves they receive too money and if groves/ballas kill civilian they go to jail or if they have cash in hand, they will lost $2000.. I have greenzones there+ base markers.. I maked more than hard work for this script... And I wannna request how can I make window, that it will spawn you to team Or I have window.. There's code about button: addEventHandler ( "onClientGUIClick", Groves, setTeam ) I have window code in safe in computer, I don't wanna post it and there's, that button thing (which should setTeam) function setTeam(button,state) -- when they click with the left mouse button if button == "left" and state == "down" then -- if they clicked the groves button if source == Groves then setPlayerTeam ( source, Groves ) I have teams in difference script And they are working! It's more than awesome if somebody can help I really need this script!
  19. Worked, but if it reaspawn nobody cannot see the icons.. But you can pickup it... But canno't see the icon "money icon" or/marker, How to fix it?
  20. Yes, I tried.. There's codes what I tried: createPickup ( -2056.58, -184.65, 225.32, 1274, 10000, respawnTime = 30000 ) and also: <pickup id="pickup (money) (1212)" amount="10000" posX="2479.5717773438" posY="-1657.3337402344" posZ="13.326832771301" respawn="30000" type="money" /> And there was also one, but I can't find it anymore So i'm tried createPickup.
  21. Hello, I was wondering, that how to make money pickup.. With respawn I tried code what was in mta development, but didn't work. So, I don't wanna money drop, just pickup I maked nice money pot script which you have to find, but how can I do money pickup which give 10k
  22. Thanks, worked like dream, but How Can I make it showing when player join+ when player dead..
  23. Omg! It crashed all accounts and It didn't even work! Hmm... It didn't work at all No warnings, but no work..
×
×
  • Create New...