SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 02/01/2015, 10:31 AM   #11
muzammilfreeman
Huge Clucker
 
muzammilfreeman's Avatar
 
Join Date: Dec 2014
Location: In The World Of Roleplay.
Posts: 304
Reputation: 41
Default Re: S-ART [place any picture on the map like an object!]

Good Job man!
__________________
Server Information:

SA-MP: samp.ne-rp.net
FORUMS: www.ne-rp.net/forums
TeamSpeak3: ts.ne-rp.net
UCP: cp.ne-rp.net
Shop: shop.ne-rp.net

JOIN NOW TO EXPLORE AMAZING FEATURES[STABLE 40+ DAILY PLAYERBASE]
muzammilfreeman is offline   Reply With Quote
Old 02/01/2015, 10:52 AM   #12
Lordzy
High-roller
 
Join Date: Mar 2012
Location: NetherRealm
Posts: 2,801
Reputation: 1095
Default Re: S-ART [place any picture on the map like an object!]

I haven't checked the plugin source but from what I've seen on the include, the invoke function could work wrongly in some cases (where the object created under invoke might not be the 1st server created object)
Code:
	CreateObject(0,0.0,0.0,0.0,0.0,0.0,0.0); 
    SetObjectMaterialText(0, Var, 0, OBJECT_MATERIAL_SIZE_512x512, "Webdings", 35, 0, 0, 0, 0);
	SetObjectMaterial(0, 1, -1, "none", "none", 0);
	DestroyObject(0);

You've declared a variable named "Var" but never used it, I suppose it was meant to save object IDs. The above code simply sets material text and textures object ID of 0 value, which may not be the object ID which was created under invoke function.
__________________
[Include]safeDialogs - Complete protection against dialog responses! (dialog ids, list-items, input-text of list-item and user)

Currently inactive - I don't play at any SA-MP servers nor work on anything in PAWN for now. The projects that I've done so far in PAWN, which requires updates will be taking some time.
Lordzy is offline   Reply With Quote
Old 02/01/2015, 10:55 AM   #13
Daewoo
Little Clucker
 
Daewoo's Avatar
 
Join Date: Nov 2014
Posts: 25
Reputation: 6
Default Re: S-ART [place any picture on the map like an object!]

Make, on linux and i love u
__________________
My FS's:
Speedometer "differently than the other"
My GM's:
None
Project:
Next soon
Daewoo is offline   Reply With Quote
Old 02/01/2015, 11:22 AM   #14
N.K.Stallone
Big Clucker
 
N.K.Stallone's Avatar
 
Join Date: Oct 2010
Location: Sofia, Bulgaria
Posts: 157
Reputation: 17
Default Re: S-ART [place any picture on the map like an object!]

Quote:
Originally Posted by DialUp View Post
no, it supports only 24-bit PNG images (to keep it small and simple - I can use giant library like OpenCV, but then it will require external DLLs). I think it's not so hard to re-save GIF in another format with something like Paint
I think he wasn't talking about the format of the picture itself, but rather does it support moving images like .gifs.
__________________
N.K.Stallone is offline   Reply With Quote
Old 02/01/2015, 11:36 AM   #15
RaeF
Huge Clucker
 
Join Date: Dec 2014
Location: Indonesia
Posts: 266
Reputation: 27
Default Re: S-ART [place any picture on the map like an object!]

Finally xD
RaeF is offline   Reply With Quote
Old 02/01/2015, 12:16 PM   #16
Zume
High-roller
 
Zume's Avatar
 
Join Date: Nov 2011
Location: El Salvador
Posts: 1,660
Reputation: 311
Default Respuesta: S-ART [place any picture on the map like an object!]

Awesome!
__________________
Zume is offline   Reply With Quote
Old 02/01/2015, 01:36 PM   #17
iWhite
Huge Clucker
 
Join Date: May 2012
Posts: 223
Reputation: 18
Default Re: S-ART [place any picture on the map like an object!]

Which directory should I use, if I want to load pictures from my gamemode folder? Include, plugin or samp-server.exe folder?
iWhite is offline   Reply With Quote
Old 02/01/2015, 01:52 PM   #18
n0minal
Banned
 
Join Date: Mar 2013
Location: Rio de Janeiro
Posts: 4,100
Reputation: 704
Default Re: S-ART [place any picture on the map like an object!]

I've tested the first version of the script but when i get closer of objects it dont loads at all because of streamer limit, if i don't use streamer i can't create maps on my server, so theres any way to reduce the numbers of objects used to create the image? Its one of the bests works ever i saw on sa-mp. Congrats, rep + 3 again.
n0minal is offline   Reply With Quote
Old 02/01/2015, 02:59 PM   #19
iWhite
Huge Clucker
 
Join Date: May 2012
Posts: 223
Reputation: 18
Default Re: S-ART [place any picture on the map like an object!]

Strange, it doesn't work. No errors in console, but no image either. My code:
Quote:
CMD:traffic(playerid, params[])
{
new Float, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreateArt("H:\\lol.png", x, y, z, 0, 0, 0, 100, 2);
return 1;
}
iWhite is offline   Reply With Quote
Old 02/01/2015, 03:06 PM   #20
n0minal
Banned
 
Join Date: Mar 2013
Location: Rio de Janeiro
Posts: 4,100
Reputation: 704
Default Re: S-ART [place any picture on the map like an object!]

Quote:
Originally Posted by iWhite View Post
Strange, it doesn't work. No errors in console, but no image either. My code:
Probably you need to increase your Z position because SA-MP art is a very very big rectangle and if you use same position as your player it should be under the ground... try z + 50.0
n0minal is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Object ! [Picture] ! dorperez Scripting Help 4 17/11/2011 08:29 PM
i need the id of the object : (Including picture) BurnOutt Help Archive 5 16/05/2010 07:12 PM
What's A object ID (Have Picture) maximus_corleone Help Archive 1 20/03/2010 12:59 PM
What is the object id of this picture? gtapolicemods Help Archive 2 18/02/2010 02:46 AM
I Need Object ID - Glass & Picture CamelJoe Help Archive 27 17/04/2009 09:41 PM


All times are GMT. The time now is 08:38 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.