Also i seriously suggest you hault your work on this . from the way you coded this i can tell you dont grasp the fundamentlas of programming. You have functions not closed , registers randomly in the middle of the script. And your trying to code a pretty advanced script . I dont condone this

. start small. learn the basics.
read these tutorials first
http://wiki.amxmodx.org/index.php/Ca...28AMX_Mod_X%29
start with the basic pawn tutorial then work your way up.
http://www.compuphase.com/pawn/pawn.htm#DOWNLOAD_DOCS
http://djeyl.net/forum/index.php?showtopic=17495
http://amxmodx.org/doc/
read these first . Im willing to help people learn but if you dont want to learn then dont bother me