[Tool/Web/Other] SAMP arts
#6

ehh... install everything below
python 2.7
pillow
numpy
scientific

then open convert.py with notepad and modify this code:
Code:
#rotation vector for the picture
angle = Vector(0,0,0)

#coordinates of picture center
start_pos = Vector(-757.512390, 1896.021484, 59.6)

#name of the picture file
picture_name = 'dash.png'

#name of the output file
out_name = 'dash.txt'
(coordinates and rotation are similar to CreateObject parameters)

picture name is path to the picture (for example, 'C:\\new_folder\\picture.png'), or just picture name if the picture in the same folder with script.
output file is text file name, where the pawn script will be placed.
example picture and output file are here
https://www.dropbox.com/s/tgl193bb561ryw5/pic.rar

After you get .txt file, just place code into your pawno script, in the place where you create objects (with #include "out.txt" or just copy-paste)

don't use large images! 300*200 is enough. If you need more quality, I'll modify script for smaller objects. But as I said, back side of picture will be damaged
Reply


Messages In This Thread
SAMP arts - by DialUp - 22.06.2014, 20:23
Re: SAMP arts - by Tamer - 22.06.2014, 20:47
Re: SAMP arts - by DialUp - 22.06.2014, 20:54
Re: SAMP arts - by AiRaLoKa - 23.06.2014, 02:35
Re: SAMP arts - by amirab - 23.06.2014, 11:10
Re: SAMP arts - by DialUp - 23.06.2014, 12:08
Re: SAMP arts - by FahadKing07 - 23.06.2014, 14:19
Re: SAMP arts - by Barnwell - 23.06.2014, 15:43
Re: SAMP arts - by Mckarlis - 23.06.2014, 18:04
Re: SAMP arts - by amirab - 24.06.2014, 01:38
Re: SAMP arts - by n0minal - 25.06.2014, 16:38
Re: SAMP arts - by DialUp - 25.06.2014, 16:38
Re: SAMP arts - by n0minal - 25.06.2014, 16:56
Re: SAMP arts - by DialUp - 25.06.2014, 20:18
Re: SAMP arts - by n0minal - 25.06.2014, 20:37
Re: SAMP arts - by DialUp - 25.06.2014, 20:39
Re: SAMP arts - by n0minal - 25.06.2014, 20:42
Re: SAMP arts - by DialUp - 25.06.2014, 21:04
Re: SAMP arts - by [BWL]Chamaleon - 25.06.2014, 22:46
Re: SAMP arts - by DialUp - 26.06.2014, 00:21
Re: SAMP arts - by n0minal - 26.06.2014, 09:25
Re: SAMP arts - by DialUp - 26.06.2014, 12:09
Re: SAMP arts - by PT - 26.06.2014, 12:34
Re: SAMP arts - by DialUp - 27.06.2014, 16:45
Re: SAMP arts - by DialUp - 27.06.2014, 17:34
Re: SAMP arts - by maaz - 27.06.2014, 18:05
Re: SAMP arts - by Spydah - 27.06.2014, 21:52
Re: SAMP arts - by Ke_NiReM - 27.06.2014, 22:15
Re: SAMP arts - by ikey07 - 27.06.2014, 22:21
Re: SAMP arts - by Basssiiie - 27.06.2014, 22:26
Re: SAMP arts - by Inverse - 11.07.2014, 10:45
Re: SAMP arts - by Sojo12 - 17.07.2014, 05:22
Re: SAMP arts - by pyrodojo25 - 20.07.2014, 13:31
Re: SAMP arts - by pyrodojo25 - 20.07.2014, 14:59
Re: SAMP arts - by DialUp - 20.07.2014, 20:46
Re: SAMP arts - by DialUp - 21.07.2014, 07:49
Re: SAMP arts - by Meow22 - 21.07.2014, 08:37
Re: SAMP arts - by Smileys - 21.07.2014, 08:54
Re: SAMP arts - by Greaper - 21.07.2014, 09:18
Re: SAMP arts - by Meow22 - 21.07.2014, 09:36
Re: SAMP arts - by Meow22 - 21.07.2014, 10:01
Re: SAMP arts - by DialUp - 21.07.2014, 10:38
Re: SAMP arts - by Madzior_ - 21.07.2014, 10:47
Re: SAMP arts - by Greaper - 21.07.2014, 11:50
Re: SAMP arts - by DialUp - 21.07.2014, 12:44
Re: SAMP arts - by Smileys - 21.07.2014, 14:30
Re: SAMP arts - by DialUp - 21.07.2014, 15:06
Re: SAMP arts - by Smileys - 21.07.2014, 15:11
Re: SAMP arts - by Meow22 - 21.07.2014, 15:16
Re: SAMP arts - by DialUp - 21.07.2014, 17:39
Re: SAMP arts - by KrYpToDeN - 10.07.2015, 05:52
Re: SAMP arts - by vaske - 08.08.2015, 00:20
Re: SAMP arts - by Jabern - 14.08.2015, 14:46
Re: SAMP arts - by EncikBuyer - 14.08.2015, 16:10
Re: SAMP arts - by IIOl - 23.08.2015, 14:59
Re: SAMP arts - by DialUp - 18.10.2015, 16:10

Forum Jump:


Users browsing this thread: 3 Guest(s)