[Pedido] Super soco
#3

PHP Code:
new
    
Floatx,
    
Floaty,
    
Floatz,
    
Keys,
    
ud,
    
lr,
    
Floathealth,
    
Floatarmour
;
public 
OnPlayerUpdateplayerid )
{
    
GetPlayerKeysplayeridKeysudlr );
    if( 
Keys == KEY_FIRE && GetPlayerWeaponplayerid ) == ) {
        for( new 
i=0500i++ ) {
            if( 
IsPlayerConnected) ) {
                
GetPlayerPosplayeridxy);
                if( 
playerid != ){
                    if( 
IsPlayerInRangeOfPointi1.5xy) ) {
                        
GetPlayerArmourplayeridarmour );
                        
GetPlayerHealthihealth );
                        if( 
armour ) {
                            
SetPlayerArmouriarmour-40 );
                            return 
false;
                        }
                        
SetPlayerHealthihealth-40 );
                    }
                }
            }
        }
    }
    return 
true;

Crйditos: DraKiNs & Higor.
Reply


Messages In This Thread
[Pedido] Super soco - by iacocesar123 - 14.05.2011, 17:41
Re: [Pedido] Super soco - by Carl_Thuse - 14.05.2011, 17:48
Re: [Pedido] Super soco - by The Knight - 14.05.2011, 17:54
Re: [Pedido] Super soco - by Macintosh - 14.05.2011, 17:58
Re: [Pedido] Super soco - by TheGarfield - 14.05.2011, 18:59

Forum Jump:


Users browsing this thread: 1 Guest(s)