SA-MP Forums Archive
Map Editing! - 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: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Map Editing! (/showthread.php?tid=241763)



Map Editing! - JokerNathan - 18.03.2011

Dear Reader, I have recently made a server with a stunt gamemode. I am trying to add my own ramps on the map but not sure how to do this. It would be greatful if someone could show me a example code and where to put it.

Thanks

JokerNathan


Re: Map Editing! - maramizo - 18.03.2011

CreateObject.


Re: Map Editing! - JokerNathan - 18.03.2011

Umm Bit more in depth like a example and under what section?


Re: Map Editing! - JokerNathan - 18.03.2011

Anyone?


Re: Map Editing! - TheYoungCapone - 18.03.2011

you need to convert them to CreateObject or any streamer that you use convertffs.com


Re: Map Editing! - austin070 - 18.03.2011

pawn Код:
public OnGameModeInit(...)
{
     CreateObject(objectid, x, y, z, Rx, Ry, Rz, streamdistance);
     return 1;
}



Re: Map Editing! - Amel_PAtomAXx - 18.03.2011

you need editor first (MTA or SAMP map editor(SAMP editor is better)) then build what you want , its too easy ,, then click "show code" and copy all codes , then go to www.convertffs.com paste you objects there and select input "SAMP create object" ,,,, when you convert then copy that converted codes and paste it in gamode.pwn,, in
Quote:

public OnGameModeInit ()
{
return 1;
}

example:
Quote:

public OnGameModeInit()
{
CreateObject(3361,-640.30000000,489.29000000,4.25000000,0.00000000,0. 00000000,90.00000000); //
CreateObject(3361,-642.74000000,481.68000000,4.25000000,0.00000000,0. 00000000,270.00000000); //
CreateObject(10865,-691.29000000,485.65000000,5.23000000,0.00000000,0. 00000000,0.00000000); //
CreateObject(10865,-691.38000000,450.90000000,5.23000000,0.00000000,0. 00000000,180.00000000); //

return 1;
}