Jump to content

Callum

MTA Contributors
  • Posts

    865
  • Joined

  • Last visited

Everything posted by Callum

  1. A server with lots of players and resources can sometimes cause the client to crash. It's just a common problem in MTA.
  2. Try this: function giveCommand ( source, command, playerToGive, moneyToGive ) if ( playerToGive ) then if ( moneyToGive ) then local givingPlayer = getPlayerName ( source ) local thePlayer = getPlayerFromName ( playerToGive ) if ( thePlayer ~= false ) then local moneyToGive = tonumber ( moneyToGive ) local playersMoney = getPlayerMoney ( source ) if ( playersMoney >= moneyToGive ) then takePlayerMoney ( source, moneyToGive ) givePlayerMoney ( thePlayer, moneyToGive ) outputChatBox ( givingPlayer .. " has given you $" .. moneyToGive .. ".", thePlayer, 255, 255, 0 ) outputChatBox ( "You have given " .. playerToGive .. " $" .. moneyToGive .. ".", source, 255, 255, 0 ) else outputChatBox ( "You do not have enough money.", source, 255, 255, 0 ) end else outputChatBox ( thePlayer .. " does not exist.", source, 255, 255, 0 ) end else outputChatBox ( "Please specify an amount to give the player!", source, 255, 255, 0 ) end else outputChatBox ( "Please specify which player to give the money to!", source, 255, 255, 0 ) end end addCommandHandler ( "give", giveCommand )
  3. Are the servers they play together really popular servers with loads and loads of scripts running, and loads of players online?
  4. Callum

    Hacking

    Only the server console itself can login as that, if you delete it, it will just be re-created when you next run the server. And have you got a resource called "runcode" running? I don't think the newer ones allow non-admins to execute codes but the older ones did I think.
  5. DOWNLOAD LINK: https://community.multitheftauto.com/index.php?p= ... ils&id=603 Overview The animations menu is binded for all players to F2. Server owners/scripters can fully customize all the animations on the menu with ease. It's also very straight forward and tidy for the clients. The client code isn't too big either so it doesn't cause a massive download for joining players. This is one of my first community resources. Please report any bugs and feedback. How to use (for owners/scripters) To add a new animation simply open the animations.map file, template the example, edit the block and code, save, and you're done. You can find all the animation blocks and codes by clicking here. How to use (for clients) Press F2, select a category, select an animation, and press F2 again to hide the menu. If you want to change animation just click another, or if you want to stop doing an animation all together just click the "Stop Animation" button. Known Issues/Bugs The "Stop Animation" button isn't 100% reliable (but jumping works as a substitute). As I said, this is my first community script so I apologize if it's a bit buggy and/or dodgy. Any feedback and bug reports would be gratefully accepted.
  6. Every once in a while a player joins my server and then instantly they quit. I know they don't quit by choise as it's the very same instant as them joining. I'm pretty sure it's not the server's speed either as other players can join, play, etc. After somebody joins then instantly quits debug displays the following error: ERROR: Invalid element specified. Anybody else getting this error or know the cause of it? I'm pretty sure it's none of my scripts either as they don't do hardly anything as a player joins exept output it and show them the login/register menu. My server is a GNU/Linux, MTA SA 1.0.3 (of course).
  7. I've seen 3-5 players connect to my server with the same IP all at once, they had ok'ish ping (about 125), and they played for about 20 minutes. They only quit because I banned one of them for hacking, and the rest ping timeout'd seconds later (but that appears to be normal when banning multiple uses on 1 IP).
  8. Callum

    LOW FPS loL*

    Them specs aren't bad, but they're not great either. My laptop has 1GB RAM, and it plays really really slowly (like 6FPS), and my computer has 2GB RAM, which runs really smooth and fast, so the RAM and CPU might be partly the blame. EDIT: Are you talking about different servers having different FPS rates?
  9. It works! (after 3-4 hours of us messing with SQL databases and scripts) But the end result it cool, nice work.
×
×
  • Create New...