Thread: Laser Sight
View Single Post
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 08-19-2007 , 05:01   Re: Laser Sight
Reply With Quote #15

line 29
Code:
	if(get_cvar_num("ls_teamcolors")>1)
Would suggest having the colors be filled into 1 cvar and then parsing it from that (just to cut down on the cvars). (That also is a poor way to register the cvars)

Get rid of ADMIN_KICK from register_cvar. That is the wrong type of flag. register_cvar does not work the same as register_concmd/register_clcmd.

You should save the weapons and the colors into globals, and recheck them every so often (suggesting a repeating task every minute), that way you won't have to change maps. (This also cuts down on prethink having too many things in it)
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`