View Single Post
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-03-2008 , 15:24   Re: Weapon Chance
Reply With Quote #7

Quote:
Originally Posted by Emp` View Post
Don't check for task_exists, just remove_task
Okay.

Quote:
Originally Posted by Emp` View Post
Code:
	if( g_bNonSpawnEvent[plr] )
	{
		g_bNonSpawnEvent[plr] = false;
	}
Just set it to false
But it must be an if() statement because the fwdPlayerSpawn() is in an else.

Code:
public eventResetHUD(plr)
{
	if( g_bNonSpawnEvent[plr] )
	{
		g_bNonSpawnEvent[plr] = false;
	}
	else
	{
		fwdPlayerSpawn(plr);
	}
	
	return PLUGIN_CONTINUE;
}




Updated to v1.1!
Whats new?

This was removed
Code:
Cvars:
-------------------
wc_oneweapon		<0|1>
-- should player be allowed more than one weapon by chance?
-- 0=YES
-- 1=NO
This was added
Code:
Cvars:
-------------------
wc_weaponcount		<num>
-- number of random weapons player can receive
And if enough people want shields and bombs, I'll add them to it.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline