Thread: Optimize Plugin
View Single Post
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 07-17-2018 , 15:28   Re: Optimize Plugin
Reply With Quote #12

Quote:
Originally Posted by OciXCrom View Post
If it wasn't, would I be writing this in a thread that says "OPTIMIZE PLUGIN"?
Wow, you are right. So can you give me some examples about using "stock bool or nothing"

For example;

First; there is anything tag of command. What if I add a tag (stock or public)
Second; there is stock and bool. What if I delete stock or bool?
Code:
rg_set_user_rendering(index, fx = kRenderFxNone, {Float,_}:color[3] = {0.0,0.0,0.0}, render = kRenderNormal, Float:amount = 0.0)
{
	set_entvar(index, var_renderfx, fx);
	set_entvar(index, var_rendercolor, color);
	set_entvar(index, var_rendermode, render);
	set_entvar(index, var_renderamt, amount);
}

stock bool:Stuck(index)
{
	static Float:origin[3];
	get_entvar(index, var_origin, origin);
	engfunc(EngFunc_TraceHull, origin,origin, IGNORE_MONSTERS, get_entvar(index, var_flags) & FL_DUCKING ? HULL_HEAD : HULL_HUMAN, 0, 0);
	return (get_tr2(0, TR_StartSolid)) ? true:false;
}
__________________
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