GhostXoP
Members-
Posts
402 -
Joined
-
Last visited
Everything posted by GhostXoP
-
Resource1 creates event "MyEvent" Resource1 Adds an event handler to MyEvent. Can Resource2 Trigger "MyEvent" Even tho its not defined in Resource2's script.
-
If a Resource registers an event, can another resource trigger that event?
-
Thank you, but i stand correct, events being system wide? Or are they resource dependent as well?
-
can global variables from one resource, be used from another? Say House resource is started and the server script contains a global variable called MyBigHouse And you start another resource called Store, but it uses a global variable called MyBigHouse. Will they interfere? I understand Events are generally system wide, and you can add an event handler to certain resources that trigger it but. What about variables?
-
[TUT] Protect Client Script at the Highest Level
GhostXoP replied to laserlaser's topic in Tutorials
Sure, but id still recommend it, they steal, mod it to be better then yours. Then you have an empty server, and children claiming the A+ code is theirs. Can't beat the hell out of them for it. Well you can, but it won't stop the influence. P.S. Supernatural is a good series. I own them all. -
The challenge of making application programmers Maud
GhostXoP replied to hassan.k.s.a's topic in Scripting
Are you asking, when you kill someone, you get their amount of money? -
How do i use Mysql or Sqlite? for a login/register script?
GhostXoP replied to blurryshadow1's topic in Scripting
Compared to C++ (or C), It was probably the easiest scripting language i had to learn in a day. Dynamically typed languages are fun. PM me, we will set up times where i can walk through it all with you. You just haven't learned a language yet, but when you do, you will know what to expect in the next one, and the next one. It only took me about a day, because i already knew a language, like C. Im not saying trying and break a record learning a language, i was just excited to write scripts. Like i said, PM me, ill go over the concepts you may not understand, and help you understand the language better enough to learn the rest on your own. -
How do i use Mysql or Sqlite? for a login/register script?
GhostXoP replied to blurryshadow1's topic in Scripting
It shouldn't. Not really a programmer rule, but if its possible, it would have been specified that it would be possible in a users manual. The wiki and/or functions telling on how to use the account system should specify the warning. Otherwise, if your HD can handle it, you can have thousands of accounts. Because you didn't look at the tutorial i had shown youBecause you didn't look at Lua like i had told you to (on youtube for example, youtube has tutorials for nearly anything) Because it seems you do not want to learn? -
Please note this is basically Generous Volunteer work. No physical money involved.
-
At the moment, i have a vision as to what id like to do. My main goals right now involve: --Login System [X] Show a window at start up, asking for password and user name, or create account. This also sets the GTA rendering clip to three miles. (Similar to real life viewing distance.) this may change, as many computers can run fine under this, however some cant. --Spawn System [ ] Spawn system to show up after login system. I have not decided just where characters will spawn, but i do know its in the remaining town, Bay side. --Bank System [X] Bank system currently made to store, withdrawal, or get account status. Bank is located in Bay side. --Item system [ ] Storage of weapons, food, cars. Or sale. --Item system[ ] Each user can strike a key (key not decided yet) generating a window to pop up showing the users food, health, weapons, and car. --Zombie system[ ] Zombies with characters similar to Resident Evil 2 along with sounds spawn in random parts of the map and are generated by the server. Their AI will be designed to follow, or wonder. They will run at top speed (Making it similar to 28 Days later) However, they will be very difficult to kill. Now please note i said the zombies are Server Generated. That means when you leave them, you can come back, and the zombie will still be there (or wondered off somewhere). I am still designing the AI but am excited about its finish. (possibly a month). They will be hard to kill as there wont be many zombies on the map (Approx 700 - 1000) I have to play with it, and see just how good my home computer will play it. Unless i resort to Online Hosting. I have created the Bank and Login system in 4 days, and want to work on the zombie system next, (to get it out of the way). I am Very Serious about this project, as i was with past software projects (My two DOS Operating system projects and a Graphics engine). Saying that, you should understand i never quit projects, If you did join, you would find id never just drop the project. Its also been a dream of mine to create a world ravaged by zombies If you would like to dedicate time, ideas, or scripts id be more then appreciative. Money will have a big value, at 4 - 7$ a head, it will take alot of zombies to get enough to buy a car (which are all custom. Expect vehicles similar to Jeeps or Other cars. Give me ideas!!) which will range from 4k - 100k+. Giving scripts, or being a part time scripter would make you a valuable player (25k a script) or a Moderator. Tell me what you think, If your interested PM me. If you have any ideas respond with those too! Please note, I am not wanting scripters, just so they do all of the work. I am asking for scripters who like my idea, and want to help with ideas, or with scripts of their own that believe their work will make game play even more enjoyable Thank you for reading.
-
How do i use Mysql or Sqlite? for a login/register script?
GhostXoP replied to blurryshadow1's topic in Scripting
Oh ok, that narrows what you need down then. Learn Lua, then Learn SQLite, then take a look at MTA's db Functions. Once you know it, your mind will piece it together for you. The wiki is confusing because you don't know Lua as fully as you should -
How do i use Mysql or Sqlite? for a login/register script?
GhostXoP replied to blurryshadow1's topic in Scripting
viewtopic.php?f=148&t=38203 And some SQLite. However, ive resorted to using MTA's account system instead. I use SQL for my bank's though -
That would explain why the last button that was unresponsive did the same until i fixed its coordinates. I may be overusing this term but... Thank you.
-
In a nut shell, I click the input box with my cursor, and it does not respond, nor does it allow input. What may be wrong? Other buttons can be clicked however.
-
Yes of course. Was wondering why the code didn't look too similar to my IDE's colors.
-
Thank you very much
-
How can the server get the users account name from the players Player element I tried Client triggerServerEvent("Test", getRootResource(), getPlayerName(getLocalPlayer())) Server function Test(PlayerName) -- The event handler is defined, but just to skip to it. getAccountName(getAccount(PlayerName)) end I dont want the players name, i want the account name the player logged in with.
-
Thank you, Has this been done before, as far as you know?
-
Heres a senario, a player from a team (that consists strictly of zombies) gets within range of say, a tower. When they get within range of this tower, an alarm sounds off at the position of the tower. Two questions, can this be done? and will the sound fade the farther you are away from it?
