
robhol
Retired Staff-
Posts
2,120 -
Joined
-
Last visited
-
Days Won
1
Everything posted by robhol
-
Nitpicking: it's not "not easy" to calc GTA index codes -> RGB, it's not possible at all. What you need is a comparison table.
-
function isNumber(n) return tonumber(n) ~= nil; end should do the trick..
-
playerLoginCheckSkin (hitPlayer, ... Wait, what?
-
If your rip is actually larger than the real game, then it definitely doesn't make sense. Try to install the proper game.
-
That's not what he asked either, (and by the way, yes you can, but only a few) maybe you should read a bit more carefully. The thing about peds is, they're somewhat difficult to control since you can only set individual controls on or off. Maybe someone could create a "control library" for peds with functions like "goTowardsPoint" or something, but until then you're stuck doing it this way.
-
Nice to know...
-
Out of curiosity, what did you do?
-
Can't turn arrow markers upside down.
-
Playing a mod on a rip doesn't make much sense, as you never really know what they've left out and how that will affect stuff. You should try to get your hands on either a DVD or at the least, an ISO.
-
I think it could be useful having a tool that lists commands for you - something like table getCommandHandlers( [ string/resource res ] ) (res is the resource from which the command handler was registered) Since I'm fairly sure those are already collected at one place, this looks like another 5-min implementation, and it'd help for ACL masking, documentation and help files, etc. since overlooking one command in a large resource is easy and, especially in the case of ACL coverage, the results may be unpleasant..
-
Mentioned before, tons of times. It's planned sooner or later, but nobody is completely sure when it'll come.
-
change nick on nick change and dont get into infinite loop
robhol replied to dzek (varez)'s topic in Scripting
Seems reasonably easy to "hack around" to me. When you change someone's nick, temporarily set a variable for the player; the value can be the new name you set for him. Then in the handler function, do something like if newNick == storedNewNick then return; end Maybe there should be a "bool scripted" argument to onPlayerChangeNick, though. Would avoid this whole mess. -
This looks as well made as your other maps. Nice work.
-
Out of curiosity, why not MySQL? If all you need to do is rank players, I see no reason why you can't just do what 50p said - something like SELECT * FROM foo ORDER BY Score DESC LIMIT bar. If this isn't what you wanted, then you have done a crappy job of explaining it..
-
There are two main methods for creating text. You can either hook the client-side event onClientRender and draw text in the handler with dxDrawText, or you can use server-side "Text functions". More info on both are on the wiki. Edit: dammit, I can't believe I forgot GUI... *facepalm*
-
Maybe people are annoyed by your impatient and somewhat ungrateful tone, things like "still waiting ", whining and posting FIVE times in a row might occasionally appear that way in the eyes of some people. Try reinstalling MTA. (The client.)
-
Again: couple of hours at least one day (24h). This is not to say you can't get lucky and have it picked up in an hour, but GM is very variable. Sometimes, it's ridiculously slow, other times it's almost acceptable. Don't give up before 24h.
-
Pretty nice. Only thing I can pick a bit at is the camera effects - I think you might have gone a little bit overboard with them. They're a useful "tool", but you can have too much of a good thing, and in this movie, I got a little dizzy. Gave it a 4, nice work.
-
Yes, MTA-MySQL is the way to go. The last one is not even worth mentioning, it's limited and unstable. But unless you have a specific reason to use MySQL AND a place to host it, you will probably want to stick to MTA's native SQL functions.
-
No matter how much Kye whines about "idea stealing", I find it easier in the long run (for a variety of purposes) to use player IDs. If you make a resource that assigns each player an ID when they join, you can substantially simplify the use of commands in your server.
-
This is an issue you'd need to take up with the administration of the server(s), not here. We really can't help you.
-
Also, making a variable named "query" does not magically create a database connection, query it and return results.. for MySQL you need a separate module, for MTA's built-in SQLite database, you still need to call functions.
-
what is this I don't even Punctuation called they wanted to know why you never use them
-
You must be kiding, im about to do that and i want to see them come talking with me. Its nothing wrong giving a "identification" number to a player, i cant even see how could them issue anyone with that excuse, dont makes cense at all, its just a number infront of a player? But SA-MP "people" think they (that is, he) can do whatever he wants for any reason, which in the case of the server browser is actually true. He doesn't have a proper reason to do it, of course. Also, he's definitely not gonna "come talk" to you, it's much easier to just remove that listing.