Login
    |

[Race Server] Select map script
 
Post new topic   { POST_REPLY_TOPIC }    SKC MTA Server Forum Index -> Comments/Suggestions/Complaints
Previous topic :: Next topic  
Dockinoke
Site Admin - SKC Leader
3rd place in Race championship May 20083rd place in Race championship June 20082nd place in Race championship September 20083rd place in Race championship October 2008
User avatar

Joined: 20 Mar 2008
Posts: 2728
Location: Sicily, Italy


Posted: 01 Jun 2008, 10:15    Post subject: [Race Server] Select map script

EACH server of mta have random select of the maps. This is ok.

What do you think if we select, still random, the "type" of map following an exactly sequence?

Example.

We have on the server only 24 maps.
7 Race, like Imolasleague
7 offroads/Stock maps
5 motorbike maps
3 plane maps
2 Fun maps

On "each" map, we put a prefix, like this: " RACE- ", " MISC- ", "BIKE-", "PLANE-", "FUN-" (or others, we may decide whit more precision the typology)

Whit a simply counter, few condiction to check the prefix of map name, we can set a sequence for the random like that.


3 RACES, 2MISC, 1BIKE, 1PLANE, 1FUN

or

1RACE, 1MISC, 1RACE, 1BIKE, 1PLANE, 1RACE, 1FUN

...and, at the end of that sequence, repeat again.

I know, english bad, but if anyone understand what that mean, plz help me to translate. ^^

[/code]



Relax Rulez 8-)

<<The difference between a newbie and a noob? The first learns, the second is pwnt.>> - Docki at phone whit a friend

Docki sharable maps here: [url]http://sdrv.ms/O4MJx0[/url]
Top
Profile Send private message
Obelix
SKC Elite Member
User avatar

Joined: 22 Sep 2007
Posts: 1147
Location: White City


Posted: 01 Jun 2008, 11:08    Post subject:

If you are going to code all that, y not :lol:
Top
Profile Send private message
AdiBoy
SKC Elite Member
Winner of Race championship May 2008Winner of Race championship June 20082nd place in Race championship March 2010Winner of Race championship April 20103rd place in Race championship May 20102nd place in Race championship September 20102nd place in Race championship October 2010
2nd place in Race championship January 20113rd place in Race championship February 2011
User avatar

Joined: 22 Sep 2007
Posts: 1995
Location: Home sweet home


Posted: 01 Jun 2008, 11:44    Post subject:

we already have a random map script that goes through all the maps once and then it starts it all over, tho it seems to have some bugs
Top
Profile Send private message
Display topics from previous: Sort by
Post new topic   { POST_REPLY_TOPIC }    SKC MTA Server Forum Index -> Comments/Suggestions/Complaints



Using mChat © phpBB3BBCodes.com
Powered by phpBB © 2001, 2005, 2007 phpBB Group
cron