Raised This Month: $ Target: $400
 0% 

Register_Native


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-26-2018 , 13:41   Re: Register_Native
Reply With Quote #5

@OP, again, the objective of ReAPI is not replace other modules, the objective is provide a more stable version. Anyway, case you still don't want to use the fun, better make a stock instead of create a native.

Convert this stock to ReAPI, the end.

Code:
/*  Set rendering of an entity */ stock set_rendering(index, fx=kRenderFxNone, r=255, g=255, b=255, render=kRenderNormal, amount=16) {     entity_set_int(index,EV_INT_renderfx,fx);     new Float:RenderColor[3];     RenderColor[0] = float(r);     RenderColor[1] = float(g);     RenderColor[2] = float(b);     entity_set_vector(index,EV_VEC_rendercolor,RenderColor);     entity_set_int(index,EV_INT_rendermode,render);     entity_set_float(index,EV_FL_renderamt,float(amount));     return 1; }
__________________









Last edited by CrazY.; 07-26-2018 at 13:42.
CrazY. is offline
 



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

Forum Jump


All times are GMT -4. The time now is 12:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode