Jump to content

GioSerpo

Members
  • Posts

    18
  • Joined

  • Last visited

Details

  • Gang
    Crips

GioSerpo's Achievements

Square

Square (6/54)

0

Reputation

  1. sry bout the delay, some serious issues that im not gonna go into detail into... but, @rikimaru, no, im not gonna open source this, sorry. @Varez thanks for the link, i honestly had no idea, but there wasnt much useful there.... anyway, any help on this would be apperciated.
  2. ok... first of all, i scripted and mapped all of what i have myself... get your facts straight. i didn't "get a few resources from the community" cause this is the first time i have asked "the community" for help on my own... that being said, i know how to script some stuff, i am not the best in the world, but i surely am not the best either. I have been told to look into the race gamemode, but, that didn't help me any... The wiki is my best friend. i use it every day... and yea, it might be a "perfect" idea, but it will never be a perfect script, even if the best scripters in the world script it... now to ecoxp, thanks for your support. PM me and ill send you my MSN add and we can talk more about this.
  3. i have the ability to buy the cars, repair them, mod them, and a speedometer, but thats it. And now that i know it IS possible how would i go about making it after i have my maps? Oh and thanks for the support!
  4. OK. I am making a Need For Speed style script, with a free roam sort of feel to it. You start with a set amount of money, buy a car, and, if you have any extra money, you can upgrade it. the way to make money is obvious, race. but you do not have to race if you don't want to. Race types would include circuits (one or two laps tops 4-10 drivers), drags(straight stretch two cars max), sprints (point a to point b 2-8 drivers), and maybe drifts(most drift points wins 2-8 drivers). Winning a race gets you the pot which depends on how many racers and if its a pay to race or not. if a pay to race costs $1000 and there are 4 racers, the pot would be $5000, because there is an automatic $250 added per driver. If its NOT a pay to race, there is $500 per driver. The exception to the pot is races that only have two drivers. Drags are the main type, but sprints and drifts can have between 2 and 8, so they count sometimes. IF the race only has 2 drivers the winning driver wins the losing drivers car. The races would be whenever enough people want to do that particular map. There would be quiet a few different maps, but nothing out of San Andreas, like in most race servers, and there wont be to many obstacles. The races would all take place in the same dimension, some even at the same time, but the problem is, i wouldn't know how to script it to do be in the same dimension at the same time, or if its even possible. Thanks in advanced for any help... Gio...
  5. ye, thanks... i wasnt exactly implying someone to code it for me, lol, just to help me... so, thanks. i checked on the wiki, the processLineOfSight, it could help, but you said things like it, so, i know its not JUST that. anyway, again thanks!
  6. I am needing as much help as possible. Any and all is appericated. I am trying to script a gamemode. It will be a simple Team Death Match, but here's the catch, No guns OR cars! It will have two teams, Good and Evil. Two pre-defined skins, one per team. The attacks will be fairly simple, different buttons do different attacks, but each team has there own attack set. Most of the time, TDM's are about money, for guns, but in this case, since there are no guns, then the money is RARE, and what money you do get is spent on either making their own team, or upgrading there attacks or HP. To get money, there will be 7 Checkpoints put on the map hidden, obviously selected by the scripter, they will be the Dragon Ball's, if you die, you drop the ones you have, and the other person can get them. After you get all seven, you go to the checkpoint that appears on the map, and you can wish for Money ($1,000), Immortality (pretty much, you can't die) or The Super Sayin Ability (I'll explain later). You Start off with 2 attacks, the normal punch, and a regular blast. You can upgrade your level, up to level 5. Each level is $5,000 a piece, from 1 to 2, 2 to 3, 3 to 4, and 4 to 5. Each level adds a new attack, up to level 4, where level 5 adds the Super Sayin ability. The screen will turn white for everyone close and your skin will change. Any attack will do twice the damage, but you can only stay super sayin for 5 minutes, AND you can only use it every hour. Now, if you wish for the Super Sayin ability, you DO NOT get the attacks that you would at level 5, AND you only get to use it once, IF you wish for it. Immortality lasts for 30 minutes. I have a script to spawn already, just need to change some coords... I have the Dragon Balls as well, again, need to change some coords. I am using the sphere checkpoint thing as Dragon Balls. but, nothing else, you cant even pick them up yet. If you need any more info, PM me or lemme know here. I have nothing to give in return for your help, except to let you become an admin on the server, so, i can see if some people wont wanna help, but thats fine. any help at all is appericated though, so, thanks in advanced, Gio!
  7. i just installed GTA:SA, put the downgrader/nocd-crack, installed MTASA 1.0 nightly r500 and the dependincies, all with a fresh install, on a brand new computer with windows XP... so, it loads the "stop playing with yourself" screen and crashes... i looked in the dumps folder, and i found one... funny thing is, it works fine on my other older computer -.- same revision and when i try to upload the .dmp file it tells me they arent allowed anyone help me please? ill upload the file when i figure out how...
  8. Churchill, it was the toggleWeatherReport function, i had to export it cause the exports you had were all returning nil. and my guess on why you didnt export it it cause it is the main thing for the whole resource, lol... anyway, i cant get the SMS to save, even with the two table approach. sorry it took so long for the reply, but i had to change fomats of a few of the vids i had. sry... EDIT: While this is on my mind... i found a sort of bug. like if someone types /pda (or in my case, pushes Z) ore than once, it will open the PDA however many times they typed it, and only one instance can be closed... im goin to work on fixing that, right now, lol
  9. ok, i think i have an idea for the SMS, you have phoneinfo, which has the number and a phone book, then you make a smsifo table, which would be a seperate table, but in the same resource, that woul hold readSMS and unreadSMS. would that work? also, i got the betterweather resource implemented, but i had to export a function that wasnt already exported (i think it wasnt exported on purpose, but idk why not). that works. as for my own SMS, i couldnt quite get it working. ill get the latest version tho and try the idea about seperate tables in the same resource, ill get back to you on that. it will be about 2 hours tho, because im about to put some videos on my new MP4 player.
  10. um, sorry for the bumb, but ive been using this for a while now, at first i had only made 9 houses, and got into scripting other things, that were more of a high priority to my server. 4 of the 9 houses had owners, but i wanted to start all over, so, i added the files from kihc\reset and started building again, i know this number because i was writing down the house numbers and how much each should be worth, and, because i didnt know what interior i would end up with (its random) and i didnt wanna build a house, see the interior, buy it, set cost and sell it, i made it to 16 houses, no prices set in the game. i exited the game cause i had to eat, and then edited what values i had in kihc_database.xml from 50000 to what the price i wrote down was. i loaded the game back up, and started to make more houses. i made 31 all together, then i was going to make my 32nd house and it didnt warp me inside. so i thought i typed the command wrong, so i typed it again, still nothing, i thought hmm, so i turned on the debug script, at level 3, and got the following errors: WARNING: KIHC.lua: Bad argument @ 'xmlNodeSetAttribute' - Line: 417 WARNING: KIHC.lua: Bad argument @ 'xmlNodeGetAttribute' - Line: 452 WARNING: KIHC.lua: Bad argument @ 'xmlNodeSetAttribute' - Line: 417 WARNING: KIHC.lua: Bad argument @ 'xmlNodeGetAttribute' - Line: 452 WARNING: KIHC.lua: Bad argument @ 'xmlNodeGetAttribute' - Line: 470 WARNING: KIHC.lua: Bad argument @ 'xmlNodeGetAttribute' - Line: 470 WARNING: KIHC.lua: Bad argument @ 'xmlNodeGetAttribute' - Line: 470 ERROR: ... & MTA/Stuff/mods/deathmatch/resources/kihc/KIHC.lua:302: attempt to concatenate a nil value WARNING: KIHC.lua: Bad argument @ 'xmlNodeFindSubNode' - Line: 406 ERROR: ... & MTA/Stuff/mods/deathmatch/resources/kihc/KIHC.lua:503: attempt to perform arithmetic on local 'house' (a nil value) so, i copied and pasted the files from kihc\reset again, and it still wouldnt build... now, even after downloading fresh and new, deleting the whole KIHC folder, making a new one, and extracting to it, it still does nothing... what gives?
  11. your done, wow, i was gonna help, lol, i meant like the email address u use for MSN, thats y i said MSN Address, lol...
  12. ok, will scarface or gamersnet PM me a MSN address? that way i can always know exactly where we are! Gio
  13. hey, i can help, im a good scripter, and, i also would like to see this, as i run a RP Server, if ya need me, just PM me GIo
  14. ok, im having a SQLite issue. here goes... i downloaded 50P's simple bank system resource, which uses SQLite to save money in the bank. so, i ran it with my own server. it returned an error saying that the database was not found or was encrypted, when i tried to put money in the bank. well, i downloaded the SQLite database browser, and looked inside the database. the tables ha not been created. i crated them manually, using the way they would have been in the first place. table was "bank_accounts" with username and balance in it. i tried again. same error, "ERROR: Database Query Failed: file is encrypted or not a database (UPDATE bank_accounts SET balance = 10000 WHERE username = Jamar_Lewis)" (Jamar_Lewis is the name i use ingame, and 10000 is how much i tried to put in the bank). Well, i made me a really simple databse script, that got the players money on hand and their name, and saved it to the database. i scripted it just a bit different than the bank scirpt, as it saved that stuff on player logout and added it on login, and after working out all the other errors, i got the same error that i got for 50P's, even after manually adding the table. So, i talked to 50P about it in IRC, and he said it might be an MTA bug, because he said i was the only one who said anything about it. so, im just wondering, is this a bug, if so, why am i the only one who has it... any help is greatly appericated! EDIT: Heres what i wrote: function createDBOnStart() local created = executeSQLCreateTable("player", "Money INT, Username TEXT") if (created) then print("Database creaton successful") else print("Database creation unsuccessful") end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), createDBOnStart) function leaveHandler() local Money = getPlayerMoney(source) local Username = getClientName(source) executeSQLUpdate("player", "Money = '" ..Money.."'", "Username = '" ..Username.. "'") end addEventHandler("onPlayerQuit", getRootElement(), leaveHandler) function spawnHandler() local Username = getClientName(source) result = executeSQLSelect("player", "Money, Username", "Username = '" ..Username.. "'") setPlayerMoney(source, result[1][1]) end and heres the link to the bank script https://community.multitheftauto.com/index.php?p= ... ails&id=54 im using th e latest version...
×
×
  • Create New...