SA-MP Forums Archive
[Tool/Web/Other] Christmas Tree - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [Tool/Web/Other] Christmas Tree (/showthread.php?tid=194817)

Pages: 1 2


Christmas Tree - maxtorcd55 - 30.11.2010

I made a small code to create a Christmas tree.

pictures of the tree:
Photo_1
Photo_2
Photo_3

Код:
CreateChristmasTree(x,y,z);
Example: CreateChristmasTree(-2711.6167,-1953.4146,106.4231);
Код:
stock CreateChristmasTree(Float:X, Float:Y, Float:Z)
{
	CreateObject(3472,X+0.28564453,Y+0.23718262,Z+27.00000000,0.00000000,0.00000000,230.48021);
	CreateObject(664,X+0.20312500,Y+0.01171875,Z+-3.00000000,0.00000000,0.00000000,0.00000000);
	CreateObject(3472,X+0.45312500,Y+0.51562500,Z+4.00000000,0.00000000,0.00000000,69.7851562);
	CreateObject(3472,X+0.65136719,Y+1.84570312,Z+17.00000000,0.00000000,0.00000000,41.863403);
	CreateObject(7666,X+0.34130859,Y+0.16845703,Z+45.00000000,0.00000000,0.00000000,298.12524);
	CreateObject(7666,X+0.34082031,Y+0.16796875,Z+45.00000000,0.00000000,0.00000000,27.850342);
	CreateObject(3472,X+0.45312500,Y+0.51562500,Z+12.00000000,0.00000000,0.00000000,350.02441);
	CreateObject(3472,X+0.45312500,Y+0.51562500,Z+7.00000000,0.00000000,0.00000000,30.0805664);
	CreateObject(3472,X+0.45312500,Y+0.51562500,Z+22.00000000,0.00000000,0.00000000,230.47119);
	CreateObject(1262,X+0.15039062,Y+0.57128906,Z+29.45285416,0.00000000,0.00000000,162.90527);
}
sorry for my bad english.


Re: Christmas Tree - WillyP - 30.11.2010

Wow, very nice!


Re: Christmas Tree - AL1XD - 30.11.2010

Good job,10/10.


Re: Christmas Tree - SamyRomafia - 30.11.2010

Nice
stock CreateChristmasTree(Float:X, Float:Y, Float:Z)


Re: Christmas Tree - Scenario - 30.11.2010

Hey, very festive. If my server is up before Christmas, I'll be using this.


Re: Christmas Tree - juuleman - 30.11.2010

Whoa, good job. I think i'm gonna use this.


Re: Christmas Tree - Hiddos - 30.11.2010

Good job, a ready to use christmas tree creator! This is how things should be released, just the basic code and let users decide where to place things


Re: Christmas Tree - Jochemd - 30.11.2010

10/10. I love this! Good job! Keep on the good work, also * * * * * rating :P


Re: Christmas Tree - [MWR]Blood - 30.11.2010

Nice one!


Re: Christmas Tree - maxtorcd55 - 30.11.2010

Not bad for my first post.


Re: Christmas Tree - Gh0sT_ - 30.11.2010

If someone need to creat in game, take:

COMMAND:createct(playerid, params[])
{
new float, float:y, float:z;
GetPlayerPos(playerid, x, y, z);
CreateChristmasTree(x, y, z);
return true;
}


Re: Christmas Tree - maxtorcd55 - 30.11.2010

Код:
COMMAND:createct(playerid, params[])
{
	new float:x, float:y, float:z;
	GetPlayerPos(playerid, x, y, z);
	CreateChristmasTree(x, y+1, z);
	return true;
}
or else you are in the tree


Re: Christmas Tree - Haji - 30.11.2010

Very good.


Re: Christmas Tree - TPD - 30.11.2010

Very nice I'll be sure to use this too if I can get my server fully functioning before Christmas. Great work.


Respuesta: Christmas Tree - RatHack - 30.11.2010

Nice man


Re: Christmas Tree - Lightning[SV] - 30.11.2010

Nice, this saves me some time


Re: Christmas Tree - Flyfishes - 30.11.2010

Lol, awesome!


Re: Christmas Tree - wups - 30.11.2010

I like the cop-barbeque!


Re: Christmas Tree - zSuYaNw - 30.11.2010

This is amazing!!


Respuesta: Christmas Tree - MrDeath537 - 30.11.2010

Really nice!