Jump to content

Callum

MTA Contributors
  • Posts

    865
  • Joined

  • Last visited

Everything posted by Callum

  1. If it's an ipairs (the most common form) table, you can simply use #tableName and it will return how many items are in the table. If it's a pairs, you can use tableCount = 0 for k, v in pairs(tableName) do tableCount = tableCount+1 end
  2. Callum

    on ground?

    isPedInVehicle and getPedContactElement.
  3. Callum

    Help problem

    You need to allow it in your ACL.
  4. I don't see why Valhalla, Vedic, Shodown and all that crap is like the base of life for MTA. I made a roleplay gamemode in a week (and a bit) from scratch, and it was just as sophisticated and featureful as the rest. We're becoming a second SAMP community.
  5. Callum

    Shop GUI

    As long as you know basic maths (dividing by two, adding, multiplication, subtracting, that's pretty much it), it's very easy to make a GUI from nothing but Notepad++. It's just a matter of trial and error.
  6. Callum

    mute problem

    addEvent("onMuteButtonClick",true) addEventHandler("onMuteButtonClick",root, function(thePlayer) setPlayerMuted(thePlayer,not isPlayerMuted(thePlayer)) end ) Are you certain this is being placed in a server-side file?
  7. Callum Jones is gone? Yay! Got tired of that guy making everybody ask me 'Are you Callum Jones?', and then call me a lying 11 year old.
  8. Why not just host it yourself? Is there a specific reason it needs to be dedicated?
  9. Without the intent of offense, may I ask what inspired you to start your roleplay server (judging from your signature)? And, did you write your gamemode from scratch? In my opinion, too many players are in it for the power, and love the idea of being in charge of other players, and/or taking credit for the upkeep and content of a server.
  10. Callum

    MTA 1.4.0

    MTA could setup an RSS/Atom feed, to keep everybody informed.
  11. Maybe you should host from home temporarily, and see if you actually get any interested players (don't spend all this money just to find out nobody is interested). I recommend getting a server from Kimsufi, they offer dedicated servers, great support, and at a cheap price (as oppose to DomVPS, where you get 10 times less specs for half the price).
  12. Callum

    Sound drops

    This used to happen to me on and off, dating back to Development Preview. I haven't noticed it recently (last few months), but it may be due to the fact I have upgraded most of the hardware on my computer.
  13. This is known as desynchronization. When a player is running on your screen, the position and rotation aren't always 100% correct (especially if you or the target has a slow Internet connection and/or computer). Thus hitting them doesn't actually trigger the event, as you never hit them according to the server.
  14. Define cheap. What exactly is your budget?
  15. Selecting * can be a potential performance deficiency. You should only select the columns you need, using the format; "SELECT column1, column2, column3 FROM table WHERE column4 = 'value' LIMIT 1" PS: Using 'limit 1' makes the server stop the query after fetching 1 result. This is very good for increasing performance (so if the result is row 500 or 100000, it doesn't loop the other 99500 rows).
  16. dxDrawText or guiCreateLabel
  17. Yay, that's not sad and pointless!
  18. Callum

    Login.

    Add an outputChatBox below everything in the script (on the line after the event handler). This will determine whether the script is being executed. If not, check your meta.xml.
  19. The fire objects have collisions disabled so players can run through them, thus they are not triggered onClientPlayerWeaponFire.
  20. Indeed, it is not possible.
  21. My latest community resource, synced fire, can be found here. Now at the moment, it is very basic and has barely any functionality. I encourage you to leave your feedback in this topic; how it could be improved, exports to add, etc. I will be updating the resource as time goes by. This resource is temporary, and will be rendered useless once the MTA team add native support for synced fire, but that's been planned for the last 3-4 years. Feel free to contribute towards the resource, modify it for personal use, etc (just don't proclaim to have made it, or own it).
  22. You can implant a timer system and combine onPlayerChangeNick with cancelEvent. If you are new to lua, or don't have any idea how to script, you could look into community resources such as this.
  23. Callum

    Server doesnt work ..

    I think your client (or Game Monitor) caches the player list. Usually, if you click the server once, and wait a second, you should see the player count change.
  24. Callum

    probem

    Editing your post(s) after resolving your issue is stupid. If the MTA community were kind enough to help you, at least let others learn from your mistakes, and stop visually polluting the forums.
×
×
  • Create New...