Re: Create your own surface with just one line (CreateObjectSurface) -
Don_Cage - 18.03.2015
Very nice, good job man.
Svaka čast.
Re: Create your own surface with just one line (CreateObjectSurface) -
De4dpOol - 18.03.2015
It is amazing. I want to use it. I read it for 20 minutes and want to create a surface like in 2nd picture but don't really understood how to create it

. Are the surface starting and ending points same as gang zone start and end points (one corner and opposite corner)? xD
Re: Create your own surface with just one line (CreateObjectSurface) -
Kar - 18.03.2015
Dafaq, this sa-mp?
Re: Create your own surface with just one line (CreateObjectSurface) -
iSkyline - 18.03.2015
Wow, pretty amazing! I've always wondered here and there trying to find an include to make surfaces, but won't. Could have made one myself but lack of.... :P. I really love this! Will surely be testing it and letting you know!
Re: Reply -
Correlli - 18.03.2015
Quote:
Originally Posted by Pottus
I'm going to recommend that you add the ability to set surface rotations as well it's actually easier than it sounds.
|
Perhaps in some other update, thanks for the idea though.
Quote:
Originally Posted by Ygzeb
Great job!
I wanted to ask you (Correlli) if I can use your include for an small map include I am working on and I will release soon? Obviously respecting your credits.
|
Of course, that's why I released it - so others can use it.
Quote:
Originally Posted by De4dpOol
It is amazing. I want to use it. I read it for 20 minutes and want to create a surface like in 2nd picture but don't really understood how to create it  . Are the surface starting and ending points same as gang zone start and end points (one corner and opposite corner)? xD
|
Yep, you got it - minimum and maximum X and Y or maximum and minimum X and Y. Which one you enter first is entirely up to you.
As for the second picture, here's the code:
pawn Код:
new
s_id = CreateSurface(18752, 215.0, 215.0, 300.0, -1000.0, -1000.0, 1000.0, 1000.0, .d_stream = 1000.0, .d_draw = 1000.0);
SetSurfaceTexture(s_id, 0, 17944, "lngblok_lae2", "white64bumpy");
This will create 100 objects from -1000.0, -1000.0 to 1000.0, 1000.0 position on height 300.0 with streaming and drawing distance of 1000.0. The material is white snow texture. Change the settings how you want them.
@Others: Thanks, I'm glad you like it. I hope it'll fit your needs.
Re: Create your own surface with just one line (CreateObjectSurface) -
iZN - 18.03.2015
Finally seeing something unique on SA-MP Forums. Really great work there.
Re: Create your own surface with just one line (CreateObjectSurface) -
davve95 - 18.03.2015
Really awesome! Great job.
Re: Create your own surface with just one line (CreateObjectSurface) -
HydraHumza - 02.04.2015
Awesome! Great work
Re: Create your own surface with just one line (CreateObjectSurface) -
Crayder - 24.05.2015
Y U NO ADD SetSurfaceMaterialText!
I like to use SetObjectMaterialText for solid colors and shit.