How to Add Mapping to Server? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to Add Mapping to Server? (
/showthread.php?tid=517195)
How to Add Mapping to Server? -
Jigsaw123 - 03.06.2014
Hello, Can someone comment the steps on how to add mapping? Thank you!
Re: How to Add Mapping to Server? -
KevinPRINCE - 03.06.2014
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;
}
Re: How to Add Mapping to Server? -
SimonItaly - 03.06.2014
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.
Re: How to Add Mapping to Server? -
KillerStrike23 - 03.06.2014
@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..
Re: How to Add Mapping to Server? -
KevinPRINCE - 03.06.2014
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.