Thread: Script problem
View Single Post
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 07-19-2010 , 06:48   Re: Script problem
Reply With Quote #2

look the comment: why you handle the plugin after player choose a item?

try to replace all "return PLUGIN_HANDLED" with "return PLUGIN_CONTINUE"
PHP Code:
    if(key == 8) {
         new 
name[17]
         
get_user_name(idname18)
         
cs_reset_user_model (id)
         
ColorChat(0RED"^x04[VIP] ^x03%s^x01  has  resetted his ^x04Admin Model"name)
         return 
PLUGIN_HANDLED // <----- And here
    
}
         
    else {
         return 
PLUGIN_HANDLED // <---- here
    
}

    return 
PLUGIN_HANDLED // <------ here

and use 1 switch not 8 if statements
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers

Last edited by mottzi; 07-19-2010 at 06:51.
mottzi is offline
Send a message via MSN to mottzi