Raised This Month: $ Target: $400
 0% 

how can i add this 2 case?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-19-2011 , 16:38   Re: how can i add this 2 case?
Reply With Quote #6

This:
Quote:
Originally Posted by Exolent[jNr] View Post
You need to create a global array that is indexed by a player index.
PHP Code:
case 2:
{
    
g_yourGlobalArray[id] = true

And this:

PHP Code:
public fwTakeDamagevictim inflictor attacker Float:damage damage_bits )
{
    if( 
g_yourGlobalArray[victim] && IsPlayerattacker ) && is_user_aliveattacker ) && inflictor == attacker && ( get_user_weapon(attacker) == CSW_DEAGLE ) )
    {
        return 
HAM_SUPERCEDE;
    }
    
    return 
HAM_IGNORED;

(I think)

Quote:
Originally Posted by 2reason2kill View Post
Please Explian To me what's Wrong.
The error clearly tells you what is wrong.
__________________
fysiks is online now
 



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 23:28.


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