SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 28/02/2016, 11:22 AM   #31
Correlli
Godfather
 
Correlli's Avatar
 
Join Date: May 2009
Location: Slovenia
Posts: 6,340
Reputation: 365
Default Re: Dynamic circles (TextDraw, Object, 3D Label, Pickup, Map icon)

Quote:
Originally Posted by LatinZ View Post
Correlli, could leave a sample script for each use of circles in the video samples ?, thanks.
Already posted.
Quote:
Originally Posted by Correlli View Post
Here are commands for the first video (you'll need ZCMD and sscanf), but unfortunately I didn't save the speedometer codes. I might write them again tomorrow or someone else can try to play with the includes.
Code:
command(create, playerid, params[])
{
	new
			text[6], Float:coord[4];
	if(sscanf(params, "s[6]ffF(320.0)F(240.0)", text, coord[0], coord[1], coord[2], coord[3]))
		return SendClientMessage(playerid, -1, "Correct usage: \"/create [text] [radius] [diff] [x] [y]\"");
	if(!TD_DestroyCircle(playerid))
		TD_CreateCircle(playerid, text, 0x000000FF, coord[2], coord[3], coord[0], coord[1]);
	return true;
}
Code:
command(activate, playerid, params[])
{
	TD_ActivateCircle(playerid, 0x00FFFFFF, strval(params));
	return true;
}
Code:
command(stop, playerid, params[])
{
	TD_StopCircle(playerid);
	return true;
}
Code:
command(destroy, playerid, params[])
{
	TD_DestroyCircle(playerid);
	return true;
}
Code:
command(resume, playerid, params[])
{
	TD_ResumeCircle(playerid);
	return true;
}
Code:
command(pause, playerid, params[])
{
	TD_PauseCircle(playerid);
	return true;
}
Code:
public OnPlayerCircleFinish(playerid)
{
	SendClientMessage(playerid, 0xFFFFFFFF, "Finished!");
	return true;
}
Correlli is offline   Reply With Quote
Old 28/02/2016, 11:28 AM   #32
Unrea1
Gangsta
 
Unrea1's Avatar
 
Join Date: Oct 2013
Location: Venezuela
Posts: 810
Reputation: 126
Default Re: Dynamic circles (TextDraw, Object, 3D Label, Pickup, Map icon)

Ah, sorry.

+rep
__________________
Unrea1 is offline   Reply With Quote
Old 28/02/2016, 11:29 AM   #33
nemanjatesic
Little Clucker
 
Join Date: Jul 2011
Posts: 13
Reputation: 0
Default Re: Dynamic circles (TextDraw, Object, 3D Label, Pickup, Map icon)

The only thing hurted here is your ego.
I don't want competition with you, I just wont to open my own fu*king server.
Stop posting copies of my work and live your own fucking life.
nemanjatesic is offline   Reply With Quote
Old 28/02/2016, 11:33 AM   #34
JustMe.77
Huge Clucker
 
JustMe.77's Avatar
 
Join Date: Jun 2013
Location: Germany
Posts: 215
Reputation: 65
Default Re: Dynamic circles (TextDraw, Object, 3D Label, Pickup, Map icon)

Quote:
Originally Posted by nemanjatesic View Post
The only thing hurted here is your ego.
I don't want competition with you, I just wont to open my own fu*king server.
Stop posting copies of my work and live your own fucking life.
Could you finally be quiet? You didn't invent this system, it's nothing unique and you're the one who is complaining here.. Is there only one Admin System? Is there only one Dynamic House System? Is there only one Gang System? No!
JustMe.77 is offline   Reply With Quote
Old 28/02/2016, 11:42 AM   #35
Correlli
Godfather
 
Correlli's Avatar
 
Join Date: May 2009
Location: Slovenia
Posts: 6,340
Reputation: 365
Default Re: Dynamic circles (TextDraw, Object, 3D Label, Pickup, Map icon)

Quote:
Originally Posted by nemanjatesic View Post
The only thing hurted here is your ego.
Nah, it's just fine (I'm not the one who's whining).

Quote:
Originally Posted by nemanjatesic View Post
I don't want competition with you, I just wont to open my own fu*king server.


Quote:
Originally Posted by nemanjatesic View Post
Stop posting copies of my work
Already explained in case you missed it:
Quote:
Originally Posted by Correlli View Post
As I've already explained to you in your arogant private message - it's not your idea, it's not even unique (maybe you did figure it on your own, but that doesn't make it unique). People from Balkans always had a hard time understanding the word "unique". SA-MP covers more than your own country.
Quote:
Originally Posted by nemanjatesic View Post
and live your own fucking life.
That's what I'm doing, I kindly thank you for your concern.

Now I advise you to stop craping in this topic, because that's not the reason I opened it.
Correlli is offline   Reply With Quote
Old 28/02/2016, 11:52 AM   #36
FSAOskar
Big Clucker
 
Join Date: Feb 2015
Location: Germany
Posts: 67
Reputation: 22
Default Re: Dynamic circles (TextDraw, Object, 3D Label, Pickup, Map icon)

Great job! I wish we had a higher or no textdraw limit in SAMP so we could create much better GUIs.
I'm nearly hitting the limit so sadly I won't be able to use this.

Still, like I said, great job as always!
FSAOskar is offline   Reply With Quote
Old 28/02/2016, 11:59 AM   #37
Unrea1
Gangsta
 
Unrea1's Avatar
 
Join Date: Oct 2013
Location: Venezuela
Posts: 810
Reputation: 126
Default Re: Dynamic circles (TextDraw, Object, 3D Label, Pickup, Map icon)

Do exactly what you do in the video and get this:



Log: Error at "TD_CreateCircle" function for text "." (player ID: 5) - limit is reached (240/256).
__________________
Unrea1 is offline   Reply With Quote
Old 28/02/2016, 12:01 PM   #38
Correlli
Godfather
 
Correlli's Avatar
 
Join Date: May 2009
Location: Slovenia
Posts: 6,340
Reputation: 365
Default Re: Dynamic circles (TextDraw, Object, 3D Label, Pickup, Map icon)

Are you already using any player-textdraws?
Correlli is offline   Reply With Quote
Old 28/02/2016, 12:09 PM   #39
Unrea1
Gangsta
 
Unrea1's Avatar
 
Join Date: Oct 2013
Location: Venezuela
Posts: 810
Reputation: 126
Default Re: Dynamic circles (TextDraw, Object, 3D Label, Pickup, Map icon)

Yes, all my textdraws are player-textdraws, I have only 1 overall pick.
__________________
Unrea1 is offline   Reply With Quote
Old 28/02/2016, 12:11 PM   #40
Correlli
Godfather
 
Correlli's Avatar
 
Join Date: May 2009
Location: Slovenia
Posts: 6,340
Reputation: 365
Default Re: Dynamic circles (TextDraw, Object, 3D Label, Pickup, Map icon)

Quote:
Originally Posted by LatinZ View Post
Yes, all my textdraws are player-textdraws, I have only 1 overall pick.
And that's the problem here. Step of 1.5 will create 240 player-textdraws, which means you can only create 16 more player-textdraws. Use bigger step or destroy other player-textdraws while you're using the TD circle.
Correlli 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
How to add pickup icon? BlazeGaming Scripting Help 3 28/12/2014 11:07 AM
Dynamic Pickup/Label Help Joshy_Elite Scripting Help 2 28/03/2013 11:05 PM
dynamic map icon Tanush123 Scripting Help 5 03/01/2012 08:50 PM
Pickup Icon help JD Help Archive 1 09/12/2010 09:51 PM


All times are GMT. The time now is 11:08 AM.


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