Remove the client script, below the kickPlayer() function where you kick the player type this: outputChatBox(".. has been banned!", root, 255, 0, 0, 0)
remember to edit the code
The downfall of a redirect is that the links to forums will be broken, hence the need for a rewrite ruules.
I think www. should always rewrite to without www; www is too long and just plain old.
Yes, Blokker_1999. Assuming the MTA forum hosts using Apache, isn't an appropriate rewrite rule possible and the best solution? If it's using nginx or anything else, it's still possible - right?
Increase the RAM on your server, there isn't enough RAM for the scripts to execute successfully
(bonus point to anyone reading this, what is the recommended RAM for an MTA server?)
God mode isn't part of MTA, it's scripted. Ask on the website of the server you're playing on. There is a godmode resource on the community if you're looking for a resource.
For sake, we aren't here to fix your scripts at your beck and call. Part of scripting is to fix what mistakes you make, now learn how to debug or just.. sorry to say but .. or just get out!
MTA will not have this built in and it isn't possible for a server to use the API directly on the program, but a server COULD use the Spotify WEB API to do this.. this may not be easy since php scripts cannot be called by a client.
novo, you need some skill in Physics and more skill in Mathematics for programming/scripting.
"And, the education and the respect aren't your strong suits I see", ffs-racing is being honest and seriously - education?
I don't have any respect for noobs, I have respect for newbies though. I have respect to people who really want to code. I don't have respect for people who don't try and bother everyone else because of it.
To calculate percentages first calculate the fraction:
decimal=CURRENT_VALUE/MAX_VALUE
then multiple by 100 to make it a percentage (otherwise it's a decimal)
this means it is
percent = (CURRENT_VALUE/MAX_VALUE)*100
golanu. read the error.
SCRIPT ERROR:12: 'end' expected (to close 'if' at line 7) near 'else'
This means that on line 12 there is an error. read it and debug it yourself.
bmat, the MTA team cannot do anything about this - they may be able to blacklist the server itself. Contact the server administrator yourself, if they refuse or ignore you - threaten to go legal. No response? Get a lawyer and sue the sh out of them.
Or release the latest version (which they have) open-source so that they don't be the only ones with all the special code, then the next versions after that can be closed-source again.
You can set the weather to crazy numbers (try one of these: 55, 56, 666, 1337, 69, 100, 101) and one of them have really good draw distances. I don't remember which one and I cannot test.