How to add Maps in Samp
#1

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!
Reply
#2

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).
Reply
#3

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

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

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

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.
Reply
#7

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!
Reply
#8

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

Do you have any sort of programming background?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)