#Paper Posted October 9, 2010 Posted October 9, 2010 Because the wiki don't work, what is the function to get the num of players there are in server? My skype: skiper964 I helped you? Help me! ^^ Help me bro! ^^
dzek (varez) Posted October 9, 2010 Posted October 9, 2010 CLICK ME local players = getElementsByType("player") local playerCount = #players Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
dzek (varez) Posted October 9, 2010 Posted October 9, 2010 i was not sure if there is function like that Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
12p Posted October 9, 2010 Posted October 9, 2010 Like me, with my "realtime" resource, I didn't know setMinuteDuration() LOL!
#Paper Posted October 9, 2010 Author Posted October 9, 2010 there is a serverside function for get players num? My skype: skiper964 I helped you? Help me! ^^ Help me bro! ^^
dzek (varez) Posted October 9, 2010 Posted October 9, 2010 it is both client and server side.. Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
12p Posted October 9, 2010 Posted October 9, 2010 varez's option is for to get players nº, client-side and server-side. My option is for to get it, only server-side. If you're going to use this info in a GUI element, then use varez's option.
50p Posted October 10, 2010 Posted October 10, 2010 Simpler: local playerCount = #getElementsByType( "player" ); - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now