SA-MP Forums Archive
Help adding a map to a script? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Help adding a map to a script? (/showthread.php?tid=398568)



Help adding a map to a script? - Nick_Echo - 10.12.2012

Hello I heard that you could add a map to a script, how is this done?
Do you add the whole createobjects or w.e to the script?


Re: Help adding a map to a script? - xxxDeathxxx - 10.12.2012

you want add the the mapping to the your script?


Re: Help adding a map to a script? - MikkaVanBuuren - 10.12.2012

Just add the Objects to OnPlayerConnect


Re: Help adding a map to a script? - -CaRRoT - 10.12.2012

Quote:

Just add the Objects to OnPlayerConnect

No ? Add them under "OnGameModeInIt"

And yea - The "CreateObject(...)"


Re: Help adding a map to a script? - Astralis - 11.12.2012

Quote:
Originally Posted by Breto
Посмотреть сообщение
No ? Add them under "OnGameModeInIt"

And yea - The "CreateObject(...)"
Onplayerconnect is used for " RemoveOnPlayerBuilding "


Re: Help adding a map to a script? - [HK]Ryder[AN] - 11.12.2012

Quote:
Originally Posted by Neonman
Посмотреть сообщение
Onplayerconnect is used for " RemoveOnPlayerBuilding "
it doesn't matter..you can remove it in onplayerspawn, or maybe in a command or anywhere...


Re: Help adding a map to a script? - goviscrap - 11.12.2012

Ill use RemoveBuilding things on OnGameModeInit before my CreateDynamicObjects.

Topic: Build your map in MTA or SAMP's map editor and Copy and paste your code into: Public OnGameModeInit...
If you use MTA you need to convert them from MTA's Object to either CreateObject Or CreateDynamicObject.. And you can do it on this site HERE
And Also make sure you got the latest Streamer.dll and Streamer.inc in your server