-
Posts
865 -
Joined
-
Last visited
Everything posted by Callum
-
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
-
isPedInVehicle and getPedContactElement.
-
You need to allow it in your ACL.
-
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.
-
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?
-
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.
-
Why not just host it yourself? Is there a specific reason it needs to be dedicated?
-
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.
-
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).
-
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.
-
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.
-
Define cheap. What exactly is your budget?
-
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).
-
dxDrawText or guiCreateLabel
-
Yay, that's not sad and pointless!
-
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.
-
Why is it of interest?
-
The fire objects have collisions disabled so players can run through them, thus they are not triggered onClientPlayerWeaponFire.
-
Indeed, it is not possible.
-
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).
-
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.
-
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.