SA-MP Forums Archive
[Help request] Object scripting - 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: [Help request] Object scripting (/showthread.php?tid=350821)



[Help request] Object scripting - Songason - 13.06.2012

How to put this in my gamemode pwn file? I made it with MTA.

Код:
<map edf:definitions="editor_main">
    <vehicle id="vehicle (Sentinel) (1)" paintjob="3" model="405" plate="EO08 Q7R" interior="0" dimension="0" color="16,16,86,86" posX="2468" posY="-1669.1999511719" posZ="13.5" rotX="0" rotY="0" rotZ="0" upgrades="1001,1008,1087,1083,1018"></vehicle>
    <object id="object (tall_fence) (1)" doublesided="false" model="974" interior="0" dimension="0" posX="1545" posY="-1635.8000488281" posZ="15.300000190735" rotX="0" rotY="0" rotZ="268"></object>
    <object id="object (tall_fence) (2)" doublesided="false" model="974" interior="0" dimension="0" posX="1544.9000244141" posY="-1621" posZ="15.300000190735" rotX="0" rotY="0" rotZ="269.99499511719"></object>
</map>



Re: [Help request] Object scripting - Kindred - 13.06.2012

Simply put it in a MTA .map file converter (to .pwn). An example website would be convertffs.com.

Код:
AddStaticVehicleEx(405,2468.00000000,-1669.19995117,13.50000000,0.00000000,16,16,15); //Sentinel
CreateObject(974,1545.00000000,-1635.80004883,15.30000019,0.00000000,0.00000000,268.00000000); //object(tall_fence) (1)
CreateObject(974,1544.90002441,-1621.00000000,15.30000019,0.00000000,0.00000000,269.99499512); //object(tall_fence) (2)
The code, since I was bored and had the time to convert it.


Re: [Help request] Object scripting - Songason - 13.06.2012

Thanks bro!


Re: [Help request] Object scripting - dino_d_carter - 13.06.2012

www.convertffs.com to converte codes from mta to samp