SA-MP Forums Archive
How to add Maps in Samp - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: How to add Maps in Samp (/showthread.php?tid=607449)



How to add Maps in Samp - BlackbirdXd - 19.05.2016

Sorry for this question but you know, I am new in scripting and Starting my own server in 2016,
So today I have a question I finding readymates maps on Websites, I find but I don't know How to add them to my game mode,

Код HTML:
CreateDynamicObject(19462, 2445.67822, -1758.32141, 14.31670, * 0.00000, 0.00000, 90.00000);
CreateDynamicObject(19462, 2445.67822, -1758.32141, 17.81670, * 0.00000, 0.00000, 90.00000);
CreateDynamicObject(19462, 2455.27832, -1758.32141, 14.31670, * 0.00000, 0.00000, 90.00000);
CreateDynamicObject(19462, 2453.47827, -1758.32141, 17.81670, * 0.00000, 0.00000, 90.00000);
CreateDynamicObject(19462, 2440.98022, -1763.02417, 14.31670, * 0.00000, 0.00000, 0.50000);
CreateDynamicObject(19462, 2441.00220, -1763.04382, 17.81670, * 0.00000, 0.00000, 0.50000);
CreateDynamicObject(19462, 2457.41357, -1763.13489, 14.31670, * 0.00000, 0.00000, 8.00000);
CreateDynamicObject(19462, 2457.41357, -1763.13489, 17.79670, * 0.00000, 0.00000, 8.00000);
CreateDynamicObject(19462, 2458.75562, -1772.64221, 14.31670, * 0.00000, 0.00000, 8.00000);
CreateDynamicObject(19462, 2458.75562, -1772.64221, 17.79670, * 0.00000, 0.00000, 8.00000);
CreateDynamicObject(19462, 2454.55884, -1777.31067, 14.31670, * 0.00000, 0.00000, 92.00000);
CreateDynamicObject(19462, 2454.55884, -1777.31067, 17.79670, * 0.00000, 0.00000, 92.00000);
CreateDynamicObject(19462, 2445.75586, -1777.58496, 14.31670, * 0.00000, 0.00000, 92.00000);
CreateDynamicObject(19462, 2445.75830, -1777.60278, 17.79670, * 0.00000, 0.00000, 92.00000);
CreateDynamicObject(19462, 2445.81104, -1760.08521, 19.47670, * 0.00000, 90.00000, 90.00000);
This is a Code can somebody tell me how to Add this on My Gamemode!!

Basically this is a map for Death Match!


Re: How to add Maps in Samp - Abagail - 19.05.2016

This is the wrong section, such inquires should be posted here. If you do not know how to add objects, you are not prepared to run a server/script(everyone has to learn, but if you would've even searched you would've found an answer).


Re: How to add Maps in Samp - Olavo - 19.05.2016

Os objetos criado vc colocar ne ongamemodeinit, e os removidos em onplayerconnect...


Re: How to add Maps in Samp - Sew_Sumi - 19.05.2016

Those * may cause issue. No idea how you ended up with them in there.


Re: How to add Maps in Samp - BlackbirdXd - 20.05.2016

I don't find any solution can you tell me How to add objects!


Re: How to add Maps in Samp - JasperM - 20.05.2016

I suggest putting all your map functions in a seperate include, in a stock called something like InitMaps(), and call this function in OnGameModeInit() to keep it somewhat clean.


Re: How to add Maps in Samp - BlackbirdXd - 21.05.2016

Quote:
Originally Posted by Abagail
Посмотреть сообщение
This is the wrong section, such inquires should be posted here. If you do not know how to add objects, you are not prepared to run a server/script(everyone has to learn, but if you would've even searched you would've found an answer).
Sorry for that, But I need your help, you know i am new in pawno scripting, please share your knowledge and experience with me, so that i can optimize my server well!


Re: How to add Maps in Samp - Naresh - 21.05.2016

You can add them under OnGameModeInt it can be found on ur gm [.pwn file]


Re: How to add Maps in Samp - HeLiOn_PrImE - 21.05.2016

Do you have any sort of programming background?