View Single Post
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-11-2019 , 11:19   Re: [INC] Reapi_Stocks
Reply With Quote #3

Quote:
Originally Posted by HamletEagle View Post
Congratulations, this is the next level of coding.

PHP Code:
stock rg_get_user_button(index)
{
    return 
get_entvar(indexvar_button);
}

stock rg_get_user_oldbutton(index)
{
    return 
get_entvar(indexvar_oldbuttons);
}

stock rg_get_user_flags(index)
{
    return 
get_entvar(indexvar_flags);
}

stock bool:rg_get_user_visibility(index
{
    return !(
get_entvar(indexvar_effects) & EF_NODRAW);
}

stock rg_set_user_velocity(index, const Float:vec[3])
{
    return 
set_entvar(entityvar_velocityvec);
}

stock rg_get_user_velocity(indexFloat:vec[3])
{
    return 
get_entvar(entityvar_velocityvec);
}

stock rg_get_speed(index)
{
    new 
Float:vel[3];
    
get_entvar(indexvar_velocityvel);

    return 
floatround(vector_length(vel));

You forgot one function tho:
PHP Code:
rg_register_plugin(const name[], const version[], const author[])
{
    
register_plugin(nameversionauthor)

Fakemeta Util, but it's not as advanced
__________________

Last edited by edon1337; 08-11-2019 at 11:20.
edon1337 is offline