How to Add Mapping to Server?
#1

Hello, Can someone comment the steps on how to add mapping? Thank you!
Reply
#2

Get your mappings first.
Then you can make a public like this.
Код:
forward mappings(playerid); //Any name you want
Then you just added the mappings in the public like this
Код:
public mappings(playerid)
{
           //mappings here
           return 1;
}
Then you have to run that public on player connect. Like this.

Код:
public OnPlayerConnect(playerid)
{
        mappings(playerid);
        return 1;
}
Reply
#3

What? That will create the same objects every time a player connects.

First, read some documentation about this if you have to load more than 1000 objects at once: Streamer Plugin.
Then, you can just place the "CreateObject" or "CreateDynamicObject" codes (the ones you get from "Show Code" in Map Editor) under OnGameModeInit.
Reply
#4

@sup man,
copy the following steps:

1- Goto the place where your mta is and after that goto \server\mods\deathmatch\resources

and find the name of the map you saved in it then open its file then you'll see a notepad file or a map file enter it and copy everything in it

2- After that goto this web ClickMe
and paste everything and then theres things over it which is inputs and outputs in inputs choose the MTA 1.0 Object
and in the outputs use the YSI streamer, after that click convert and then copy the converted codes

3- then create a filterscript name it as objects and include #include <a_samp> #include <streamer>

and under public OnFilterScriptInit() paste the objects and then its done..
Reply
#5

Quote:
Originally Posted by DarkSlyder
Посмотреть сообщение
What? That will create the same objects every time a player connects.

First, read some documentation about this if you have to load more than 1000 objects at once: Streamer Plugin.
Then, you can just place the "CreateObject" or "CreateDynamicObject" codes (the ones you get from "Show Code" in Map Editor) under OnGameModeInit.
He was talking about RemoveBuildingForPlayer, anyways he got it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)