
robhol
Retired Staff-
Posts
2,120 -
Joined
-
Last visited
-
Days Won
1
Everything posted by robhol
-
I don't think you can actively move or remove a fire - just create one.
-
function isPlayerOnline(NAME) return getPlayerFromName(NAME) ~= false; end --usage if isPlayerOnline("robhol") then -- ... end That's another way to do it. But you really should make an onPlayerQuit event handler, and destroy all script references to the player and their element, when they quit the game. Otherwise you get memory leaks, etc., and we don't want that, do we? And what were you supposed to use this for? Usually when a request this strange pops up, there's something in a script that can be improved.
-
Unless you're sitting on a 9001-line script (which could happen, I guess) you're mostly better off rewriting the mode. Hell, even if you ARE sitting on a 9001-line script it'd probably be worth it.
-
Add the resource to the ACL admin group. If you take a look at existing nodes there, you'll see how it's done. Afterwards, restart the server or run aclReload() somewhere.
-
Add them to the ACL's Everyone group (command.register, command.login, etc) and disable access. Login and logout are hardcoded, I've asked the developers to "un-hardcode" it, remove it from the client and make it a separate resource, but... it hasn't happened so far, despite the obvious advantages. As for register, that is a part of the Admin resource, believe it or not, just search for "register" (quotes included) and you should be able to find the corresponding addCommandHandler statement rather easily. In this case, you might also want to set up some kind of system that alerts admins when accounts are being made from the same IP or the same serial. Blocking registrations is a bad idea since IPs change and there's something called LAN, and there's some whining about serials being imperfect, so I wouldn't advise it.. but if you just log these occurences somewhere and send a notification to an admin when they happen, you may be able to take action.
-
It only has one boolean parameter - in this case false. Please learn to use the wiki?
-
Lol, some people really need to check whether they're replying to a months-old post.
-
Try the team element. if not, get the team's active players with the previously mentioned function, loop through them, sending the message each iteration.
-
This would be something to discuss with the owners of individual servers, not here. Most people here don't really have anything to do with individual servers, and when you don't even say which server you're talking about...
-
If you don't think you can answer, stop pretending to. When you make claims, it's perfectly sensible for people to want you to defend and provide sensible arguments for them. If you can't, then don't make them in the first place. I suggest you either stop evading and answer my questions or at least stop pretending I've said things I haven't... Because I know what I've said: I was the one who said it.
-
There aren't any client-side plugins, for that exact reason: it'd be insecure.
-
Actually, key binds benefit players. It's pretty simple: a key bind is ONE key press, a command is at the very least 3 or 4, but usually much more. Similarly it's a lot easier to remember one key for one purpose than a long command for the same purpose. I didn't claim that MTA invented GUI, I'm just saying they were much earlier and that SA-MP's is extremely limited in comparison and also looks conspicuously similar to it. MTA doesn't change key binds in my experience, and if they do, changing them back once again seems like a pretty small concession. As for the server list loading times, I don't sit here with a stopwatch every time, so if you want exact numbers, go get them yourself. My point is, MTA's is quick, SA-MP's is not. And if you honestly think SA-MP is better than MTA I'd like to know what criteria you use. Apart from the players, I can't see any. Can you? You haven't answered my previous question either: if MTA is "harder" from a player's perspective: how? (And if you don't want to answer my questions, can't come up with an answer or don't wanna try: say so and don't bother replying.)
-
MTA isn't that hard to install or run - you download the installer (same way you would SA-MP's), run it (same way you would SA-MP's), select a server to connect to, (same way you would SA-MP's, EXCEPT that the server list takes 5 seconds to load instead of 5 minutes) click, and then you can play... If you think MTA is harder to play, I'd like to know how you work that out, because I've played both quite a lot and can't see how. If anything, SA-MP has a more difficult gameplay due to the lack of key binds and the fact that the only hint of GUI that's there is a half-assed ripoff of MTA's..
-
I doubt it, what exactly would you need it for?
-
SQL is server-side, GUI is client-side. In other words, you will need to link the two scripts together somehow. For this, you should look into events. The GUI is clicked (or whatever) and sends an event (as a data request) to the server, which sends an event back with the answer. You might want to take a look at the chapter of my guide dealing with events: http://robhol.net/guide/basics
-
Broph/Play also handles the chat, which means you need to disable its output somehow. Shouldn't be difficult, it's just a matter of finding the onPlayerChat handler and disabling it.
-
What's wrong with the main page?
robhol replied to Dark Dragon's topic in Site/Forum/Discord/Mantis/Wiki related
Race and DPs missing is a good thing in my opinion - it's time people moved on, and once again I can't really understand why the site should help keeping them from doing just that, by offering outdated versions for download. I do think, however, the main page looks kind of unbalanced now. Just my 2 * 10^-2 dollaz. -
Taken up before.
-
Wrong category. As for your problem, try connecting to the IP directly.
-
How does one post 60 lines of code but no errors..
-
And that means we need to understand your script. Script in English..
-
It is quite a lot of work to get NPCs walking around the map. However, we have a traffic and peds script already in progress that's currently unreleased. I've been meaning to release it on behalf of the developer for quite some time now, i'll try and see what i can do this weekend. Soon? * runs *
-
Remove the tonumber calls for one (they're completely useless and can be the source for the error) and if you want people to understand your script, script in English.
-
I was trying to subtly indicate that if you want this and you can't find it published anywhere, chances are very, VERY slim someone's going to to make it for you, so you'll have to do it yourself. http://robhol.net/guide/basics - a bit of help on the way.
-
Good. But since I'm curious: what actually causes the problem?