Raised This Month: $ Target: $400
 0% 

Set_user_rendering or Rg_set_user_rendering


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 07-09-2018 , 13:39   Set_user_rendering or Rg_set_user_rendering
Reply With Quote #1

Hey friends. I am making a plugin for my server. I need set rendering for users.
I made all plugin with reapi module. And what should I use for setting rendering?

PHP Code:
#include <amxmodx>
#include <reapi> // think as fakemeta (set_entvar = set_pev )

public blabla(id)
{
    
rg_set_user_rendering(idkRenderFxGlowShell, {255,0,0}, kRenderNormal20.0);
}

rg_set_user_rendering(indexfx kRenderFxNone, {Float,_}:color[3] = {0.0,0.0,0.0}, render kRenderNormalFloat:amount 0.0)
{
    
set_entvar(indexvar_renderfxfx);
    
set_entvar(indexvar_rendercolorcolor);
    
set_entvar(indexvar_rendermoderender);
    
set_entvar(indexvar_renderamtamount);

or

PHP Code:
#include <amxmodx>
#include <reapi> // for other codes
#include <fun> // Using fun just using set_user_rendering

public blabla(id)
{
    
set_user_rendering(idkRenderFxGlowShell25500kRenderNormal20);

__________________
A plugin that is needed for every server.
PHP Code:
public client_connect(id)
{
    if(
get_user_iq(id) < 80)
    {
        
server_cmd("kick #%d 'You have kicked from the server because your IQ is not high enough'"get_user_userid(id));
    }

PurposeLessx is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-09-2018 , 13:47   Re: Set_user_rendering or Rg_set_user_rendering
Reply With Quote #2

Since this forum is related with amxx, i suggest you to use fun include that supports both server engines.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 07-09-2018 , 13:54   Re: Set_user_rendering or Rg_set_user_rendering
Reply With Quote #3

Quote:
Originally Posted by ^SmileY View Post
Since this forum is related with amxx, i suggest you to use fun include that supports both server engines.
So is it a problem that using other ? Because I don't want to use another include in my plugin.
__________________
A plugin that is needed for every server.
PHP Code:
public client_connect(id)
{
    if(
get_user_iq(id) < 80)
    {
        
server_cmd("kick #%d 'You have kicked from the server because your IQ is not high enough'"get_user_userid(id));
    }

PurposeLessx is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-09-2018 , 13:47   Re: Set_user_rendering or Rg_set_user_rendering
Reply With Quote #4

Use what you want.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-09-2018 , 14:28   Re: Set_user_rendering or Rg_set_user_rendering
Reply With Quote #5

Quote:
Originally Posted by Natsheh View Post
Use what you want.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-09-2018 , 13:56   Re: Set_user_rendering or Rg_set_user_rendering
Reply With Quote #6

OH no, these magic words again: "I do not want to use another include"

Bro, use fun.inc is compatible with Re-SHITS and steamCMD server, that is all
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-09-2018 , 15:50   Re: Set_user_rendering or Rg_set_user_rendering
Reply With Quote #7

If you want your plugin to be used on as many servers as possible use fun since it works in both hlds and rehlds.
__________________
HamletEagle is offline
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 07-09-2018 , 16:57   Re: Set_user_rendering or Rg_set_user_rendering
Reply With Quote #8

Quote:
Originally Posted by HamletEagle View Post
If you want your plugin to be used on as many servers as possible use fun since it works in both hlds and rehlds.
Does not matter what I used, I guess. Because there are some codes of Reapi in my server except rg_set_user_rendering. Just I want is making my plugin optimized.
__________________
A plugin that is needed for every server.
PHP Code:
public client_connect(id)
{
    if(
get_user_iq(id) < 80)
    {
        
server_cmd("kick #%d 'You have kicked from the server because your IQ is not high enough'"get_user_userid(id));
    }

PurposeLessx is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-09-2018 , 17:20   Re: Set_user_rendering or Rg_set_user_rendering
Reply With Quote #9

If you're making a plugin for YOUR server and especially for ReAPI, then use ReAPI's functions.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-09-2018 , 17:42   Re: Set_user_rendering or Rg_set_user_rendering
Reply With Quote #10

Doesn't matter which you use. The real objective of reapi is not replace all other modules, only fews (orpheu, okapi, etc) and provide more improved code, playability and features for programmers, so at anytime you will need to include another modules. You can simple make a reapi_stocks like engine_stocks, and add this stock rg_set_user_rendering.
__________________









Last edited by CrazY.; 07-09-2018 at 17:44.
CrazY. is offline
Reply



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 09:56.


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