SA-MP Forums Archive
[Tutorial] Adding Custom MTA Mappings to SAMP [Beginners] - 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)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] Adding Custom MTA Mappings to SAMP [Beginners] (/showthread.php?tid=282140)



Adding Custom MTA Mappings to SAMP [Beginners] - =WoR=G4M3Ov3r - 09.09.2011

Alright, Before you post "There are alot of tutorials like that", All I've seen are Horrible ones and definetly not explained well, and I've seen alot of People lately, asking how to add em, and how to Convert em.

Step 1: Getting the .map file.
Step 2: Converting.
Step 3: Getting the Converted code.
Step 4: Pasting it in your script.
-If Gamemode:

PHP код:
public OnGameModeInit()
{
    
// The CreateObject codes goes here.
    
return 1;

-If Filterscript:

PHP код:
public OnFilterScriptInit()
{
    
// The CreateObject codes goes here.
    
return 1;


Additional Stuff.

Since SA-MP has limited using CreateObjects, you might wanna use the Streamer Plugin, which is found Here.
  1. After downloading it, Copy the Streamer.inc to your pawno > Includes folder.
  2. Get on your .pwn script and add this the top of your script, right under #include <a_samp>
PHP код:
#include <streamer> 
  1. After including it, copy the streamer.dll (if the host is Windows), or the streamer.so (if the host is Linux), and paste it in the plugins folder, in your server's file.
  2. Finally, open your server.cfg and add this:
If Windows:

Код:
plugins Streamer
If Linux:

Код:
plugins Streamer.so - Don't forget the .so
At Last, you've got Streamer now, and you will be able to use Shitloads of objects.

For the last task, get on your script again and change the codes:

PHP код:
CreateObject(modelidFloat:XFloat:YFloat:ZFloat:rXFloat:rYFloat:rZFloat:DrawDistance
To

PHP код:
CreateDynamicObject(modelidFloat:XFloat:YFloat:ZFloat:rXFloat:rYFloat:rZFloat:DrawDistance
This Tutorial, is based for Beginners, and to lack headaches going on over "Scripting Discussions".

Credits: Incognito For Streamer.


Re: Adding Custom MTA Mappings to SAMP [Begginers] - Darnell - 09.09.2011

Good for the beginners .


Re: Adding Custom MTA Mappings to SAMP [Beginners] - =WoR=G4M3Ov3r - 09.09.2011

Quote:
Originally Posted by Darnell
Посмотреть сообщение
Good for the beginners .
Yep, and i think you've seen the spamming going on the forums for map adding.


Re: Adding Custom MTA Mappings to SAMP [Begginers] - =WoR=Bruno - 09.09.2011

I would give you +1,but they dont let me ^^

good job


Re: Adding Custom MTA Mappings to SAMP [Beginners] - Kush - 09.09.2011

Nice!


Re: Adding Custom MTA Mappings to SAMP [Beginners] - Lorenc_ - 09.09.2011

Neat, perferably use pawn tags instead of php tags? It'd be much easier to read since I'm not familiar with the php syntax.


Re: Adding Custom MTA Mappings to SAMP [Beginners] - =WoR=G4M3Ov3r - 09.09.2011

Quote:
Originally Posted by =WoR=Bruno
Посмотреть сообщение
I would give you +1,but they dont let me ^^

good job
Lol.

Quote:
Originally Posted by Kush
Посмотреть сообщение
Nice!
Yep, Thanks ^^.


Quote:
Originally Posted by Lorenc_
Посмотреть сообщение
Neat, perferably use pawn tags instead of php tags? It'd be much easier to read since I'm not familiar with the php syntax.
I never use [ pawn ] [/ pawn ], Thanks to Kush.


Re: Adding Custom MTA Mappings to SAMP [Beginners] - Jafet_Macario - 09.09.2011

Nice mate.


Re: Adding Custom MTA Mappings to SAMP [Beginners] - =WoR=G4M3Ov3r - 09.09.2011

Quote:
Originally Posted by Jafet_Macario
Посмотреть сообщение
Nice mate.
Thank You.


Re: Adding Custom MTA Mappings to SAMP [Beginners] - iNaruto - 12.09.2011

I've been looking out for this only in my last few posts and didn't saw you had uploaded it as a tut so thanks and NICE work


Re: Adding Custom MTA Mappings to SAMP [Beginners] - JohnDoVaS12345 - 05.11.2011

THX! DD


Re: Adding Custom MTA Mappings to SAMP [Beginners] - XDTheProGamerz - 06.11.2011

Thanks.... its helping me


Re: Adding Custom MTA Mappings to SAMP [Beginners] - jeremy8810 - 03.06.2012

I get this:
Quote:

C:\Users\Jeremy\Desktop\World European Trucking Server\filterscripts\maps.pwn(1) : warning 235: public function lacks forward declaration (symbol "OnFilterScriptInit")
C:\Users\Jeremy\Desktop\World European Trucking Server\filterscripts\maps.pwn(3) : error 017: undefined symbol "CreateObject"
C:\Users\Jeremy\Desktop\World European Trucking Server\filterscripts\maps.pwn(4) : error 017: undefined symbol "CreateObject"
C:\Users\Jeremy\Desktop\World European Trucking Server\filterscripts\maps.pwn(5) : error 017: undefined symbol "CreateObject"
C:\Users\Jeremy\Desktop\World European Trucking Server\filterscripts\maps.pwn(6) : error 017: undefined symbol "CreateObject"
C:\Users\Jeremy\Desktop\World European Trucking Server\filterscripts\maps.pwn(7) : error 017: undefined symbol "CreateObject"
C:\Users\Jeremy\Desktop\World European Trucking Server\filterscripts\maps.pwn( : error 017: undefined symbol "CreateObject"
C:\Users\Jeremy\Desktop\World European Trucking Server\filterscripts\maps.pwn(9) : error 017: undefined symbol "CreateObject"
C:\Users\Jeremy\Desktop\World European Trucking Server\filterscripts\maps.pwn(10) : error 017: undefined symbol "CreateObject"
C:\Users\Jeremy\Desktop\World European Trucking Server\filterscripts\maps.pwn(11) : error 017: undefined symbol "CreateObject"
C:\Users\Jeremy\Desktop\World European Trucking Server\filterscripts\maps.pwn(12) : error 017: undefined symbol "CreateObject"
C:\Users\Jeremy\Desktop\World European Trucking Server\filterscripts\maps.pwn(13) : error 017: undefined symbol "CreateObject"
C:\Users\Jeremy\Desktop\World European Trucking Server\filterscripts\maps.pwn(14) : error 017: undefined symbol "CreateObject"
C:\Users\Jeremy\Desktop\World European Trucking Server\filterscripts\maps.pwn(15) : error 017: undefined symbol "CreateObject"
C:\Users\Jeremy\Desktop\World European Trucking Server\filterscripts\maps.pwn(16) : error 017: undefined symbol "CreateObject"
C:\Users\Jeremy\Desktop\World European Trucking Server\filterscripts\maps.pwn(17) : error 017: undefined symbol "CreateObject"
C:\Users\Jeremy\Desktop\World European Trucking Server\filterscripts\maps.pwn(1 : error 017: undefined symbol "CreateObject"
C:\Users\Jeremy\Desktop\World European Trucking Server\filterscripts\maps.pwn(19) : error 017: undefined symbol "CreateObject"