SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Gamemode Scripts

Reply
 
Thread Tools Display Modes
Old 11/09/2012, 06:28 AM   #1
Kitten
High-roller
 
Join Date: Jul 2010
Location: United States
Posts: 2,181
Reputation: 339
Default Dynamic Map System (GM Version)

[basic] you must include this on top of the map file!
MapName = Here you can add the map name for your map such as GroveStreet (no spaces)
FSMapName = If you use any objects or if you want specific commands just for your map you can add it here (to load the FS)
Team1X = Self Explained
Team1Y = Self Explained
Team1Z = Self Explained
Team2X = Self Explained
Team2Y = Self Explained
Team2Z = Self Explained
Interior = Setting an interior for your map
Weather = Self Explained
Time = Setting the world time for your map
Remember that you can add more variables/floats/etc to the map system but you'll have to edit the script and the map format.

Example map formats

Code:
[basic]
MapName = Test1
FSMapName = 
Team1X = -55
Team1Y = -334.89999389648
Team1Z = 7.999998092651
Team2X = -41.299999237061
Team2Y = -224.10000610352
Team2Z = 6.5999999046326
Interior = 0
Weather = 12
Time = 9
Code:
[basic]
MapName = Test2
FSMapName = 
Team1X = 1696.8551
Team1Y = -1871.7855
Team1Z = 13.5540
Team2X = 1715.3000488281
Team2Y = -1881.4000244141
Team2Z = 13.60000038147
Interior = 0
Weather = 20
Time = 0
WARNING: Make sure you have the folder named Maps in your scriptfiles and save every map in order like

0.ini
1.ini not names!

Download:

http://pastebin.com/ahcmWPF4

Mirrors are accepted (PM me)

Last edited by Kitten; 01/03/2014 at 12:25 AM.
Kitten is offline   Reply With Quote
Old 11/09/2012, 06:39 AM   #2
doodle210
Little Clucker
 
doodle210's Avatar
 
Join Date: Jul 2010
Posts: 23
Reputation: 11
Default Re: Dynamic Map System (GM Version)

thanks Kitty, will try and use this
__________________
♥"Okaeri anata. Gohan ni suru? ofuro ni suru? soredemo... wa...ta...shi!"♥
♥冴子♥
doodle210 is offline   Reply With Quote
Old 11/09/2012, 07:34 AM   #3
PawnFox
Huge Clucker
 
PawnFox's Avatar
 
Join Date: Feb 2012
Location: România
Posts: 255
Reputation: 15
Default Re: Dynamic Map System (GM Version)

Nice work, i'm gonna test it as soon as possible
PawnFox is offline   Reply With Quote
Old 11/09/2012, 08:22 AM   #4
xPhantom
Huge Clucker
 
xPhantom's Avatar
 
Join Date: Apr 2011
Location: United States of America
Posts: 391
Reputation: 45
Default Re: Dynamic Map System (GM Version)

Quote:
Originally Posted by Kitten View Post
Dynamic Map System!

Description: Hello, kitten here i've posted a map system tutorial long ago which was static it wasn't the really type of map system that i'd suggest now looking back to it around 5 month's ago i've decided to create a server named Zombie Apocalypse which used static map system in the beginning then further in the development i've created a 'Dynamic Map System' which makes everything easier before Zombie Apocalypse closed i've checked the forums alot of people was in need of a map system that works properly Zombie Apocalypse was using this map system but i've completely re-made it from scratch to get you an idea how it works.

You'll need foreach and y_ini both created by ****** y_ini is used to load/unload maps, as for foreach we use it for looping through all players you'll see in the script what it's used for.

Map Format (based on y ini)

Code:
[basic] you must include this on top of the map file!
MapName = Here you can add the map name for your map such as GroveStreet (no spaces)
FSMapName = If you use any objects or if you want specific commands just for your map you can add it here (to load the FS)
Team1X = Self Explained
Team1Y = Self Explained
Team1Z = Self Explained
Team2X = Self Explained
Team2Y = Self Explained
Team2Z = Self Explained
Interior = Setting an interior for your map
Weather = Self Explained
Time = Setting the world time for your map
Remember that you can add more variables/floats/etc to the map system but you'll have to edit the script and the map format.

Example map formats
pawn Code:
[basic]
MapName = Test1
FSMapName =
Team1X = -55
Team1Y = -334.89999389648
Team1Z = 7.999998092651
Team2X = -41.299999237061
Team2Y = -224.10000610352
Team2Z = 6.5999999046326
Interior = 0
Weather = 12
Time = 9

pawn Code:
[basic]
MapName = Test2
FSMapName =
Team1X = 1696.8551
Team1Y = -1871.7855
Team1Z = 13.5540
Team2X = 1715.3000488281
Team2Y = -1881.4000244141
Team2Z = 13.60000038147
Interior = 0
Weather = 20
Time = 0

WARNING: Make sure you have the folder named Maps in your scriptfiles and save every map in order like

0.ini
1.ini not names!


Download:

http://pastebin.com/ahcmWPF4

Mirrors are accepted (PM me)
Very good, sucks that your server closed down, I used to play on it
__________________
xPhantom is offline   Reply With Quote
Old 11/09/2012, 08:49 AM   #5
DarkB0y
Huge Clucker
 
Join Date: Dec 2011
Posts: 366
Reputation: 38
Default Re: Dynamic Map System (GM Version)

Great job keep it up ^^
__________________
DarkB0y is offline   Reply With Quote
Old 11/09/2012, 08:55 AM   #6
Qu3esL
Big Clucker
 
Qu3esL's Avatar
 
Join Date: Sep 2012
Location: Antartica
Posts: 153
Reputation: 22
Default Re: Dynamic Map System (GM Version)

nice Gamemode
Qu3esL is offline   Reply With Quote
Old 11/09/2012, 10:08 AM   #7
Str1k3[R]
Little Clucker
 
Join Date: Jul 2012
Posts: 21
Reputation: 0
Default Re: Dynamic Map System (GM Version)

give me please mode ZA(
Str1k3[R] is offline   Reply With Quote
Old 11/09/2012, 11:22 AM   #8
FanHamMer
Little Clucker
 
FanHamMer's Avatar
 
Join Date: Jul 2011
Posts: 44
Reputation: 2
Default Re: Dynamic Map System (GM Version)

Quote:
Originally Posted by Str1k3[R] View Post
give me please mode ZA(
Why offtopic?
FanHamMer is offline   Reply With Quote
Old 11/09/2012, 02:45 PM   #9
CoaPsyFactor
Gangsta
 
Join Date: Jul 2010
Location: Belgrade, Serbia
Posts: 863
Reputation: 52
Default Re: Dynamic Map System (GM Version)

and what is here dynamic, you just made Spawn coordinates, and where is loading of objects
__________________
Quote:
Originally Posted by ThaiLuan View Post
Code:
C:\Users\Administrator\Downloads\Viet-RP\gamemodes\3mien.pwn(112016) : fatal error 101: cannot write to file: "disk full"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Help me! How to fix error
CoaPsyFactor is offline   Reply With Quote
Old 11/09/2012, 02:53 PM   #10
DeadLy™
Huge Clucker
 
DeadLy™'s Avatar
 
Join Date: May 2012
Location: New Delhi,India
Posts: 373
Reputation: 102
Default Re: Dynamic Map System (GM Version)

Nice work!
__________________
LEFT
DeadLy™ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Dynamic NPC System Fab10 Filterscripts 13 27/01/2016 03:24 AM
[FilterScript] [FS] nCars (DYNAMIC VEHICLES - DJSON VERSION) Norn Filterscripts 22 20/04/2012 10:44 PM


All times are GMT. The time now is 08:06 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.