Raised This Month: $ Target: $400
 0% 

Zombi Class problem(index out of bounds)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 11-26-2014 , 19:29   Re: Zombi Class problem(index out of bounds)
Reply With Quote #3

Something like this? ( do not know how to do it 1<=id<=maxplayer )

PHP Code:
public Event_Damagevictim )
{
    new 
id
    id 
get_user_attackervictim )
    if( 
get_user_classvictim ) != zClassId 
    
|| !is_user_zombievictim ) )
        return 
PLUGIN_CONTINUE;
    
    new 
Rand random_num1100 )
    if( 
Rand && Rand <= get_pcvar_numDisarmChance ) && is_user_connected(id) ) 
    {
        
CantFireid ] = true
        Effects
id )
        
set_taskget_pcvar_floatDisarmTime ), "StopDisarmCc"id )
    }
    
    return 
PLUGIN_CONTINUE;


Last edited by Krtola; 11-26-2014 at 19:31.
Krtola is offline
Send a message via Skype™ to Krtola
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode