View Single Post
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 07-31-2013 , 19:42   Re: God Mode On Reload
Reply With Quote #3

Quote:
Originally Posted by Mauricio Frb View Post
Suggestion

Code:
public client_PreThink(id)
{
	if(get_pcvar_num(gmreload) == 0)
	{
		return PLUGIN_CONTINUE
	}

	if (!is_user_connected(id)) 
	{
		return PLUGIN_CONTINUE
	}

	if(get_user_button(id) & IN_RELOAD)
	{
		startgodmode(id)
	}
	return PLUGIN_CONTINUE
}

->>

public client_PreThink(id)
{
	if(!get_pcvar_num(gmreload) || !is_user_connected(id))
		return PLUGIN_HANDLED

	if(get_user_button(id) & IN_RELOAD)
		startgodmode(id)
	
	return PLUGIN_CONTINUE
}
It is the same but ok :S
__________________
Balck is offline