[Tool/Web/Other] Christmas Tree
#1

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.
Reply
#2

Wow, very nice!
Reply
#3

Good job,10/10.
Reply
#4

Nice
stock CreateChristmasTree(Float:X, Float:Y, Float:Z)
Reply
#5

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

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

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
Reply
#8

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

Nice one!
Reply
#10

Not bad for my first post.
Reply
#11

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;
}
Reply
#12

Код:
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
Reply
#13

Very good.
Reply
#14

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

Nice man
Reply
#16

Nice, this saves me some time
Reply
#17

Lol, awesome!
Reply
#18

I like the cop-barbeque!
Reply
#19

This is amazing!!
Reply
#20

Really nice!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)