Thread: Duel Mod v1.2
View Single Post
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 06-01-2008 , 23:44   Re: Duel Mod v1.0
Reply With Quote #3

interesting idea.

Code:
//lines 171-173
	new Names[2][33]
	get_user_name(id,Names[0],32)
	get_user_name(Index,Names[1],32)
//lines 185-186
	new Name[33]
	get_user_name(id,Name,32)
Code:
//instead of setting to 100.0, how about getting their max_health and setting it to that (some mods don't have 100.0 as the max health)
	set_pev(id,pev_health,100.0)
	set_pev(Index,pev_health,100.0)
Something also seems wrong with the PreThink and PostThink when more than one set of people are dueling, but I can't quite set my finger on it.

Suggestion: when you aren't aiming at someone when you say /duel, it brings up a menu of players to choose from.

Approved. Leaving in New Submissions for a week so people can see it.

Last edited by Emp`; 06-01-2008 at 23:48.
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`