Thread: amx freeze
View Single Post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-02-2010 , 20:02   Re: amx freeze
Reply With Quote #25

Do following changes :
  • tempid in loop is not needed as your comment said.
  • wpn var is not needed in CurWeapon event callback, also you don't need to check weapon at all since you add filter in register_event line.
  • Also, put IsFrozen check before alive check as it doesn't use any native (curweapon and prethink)
  • Func_Freeze doesn't need to be public
  • formatex is not appropriated since you don't format anything, just use copy or directly assign string value.
  • would be better to use client_disconnect than cilent_connect, also, check again for registered forward there.

Suggestion :
case 'A':
->
case 'A', 'a':
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline