warning 219:
#4

PHP код:
IsPlayerAiming(playeridaimid){ 
       new 
Float:X1Float:Y1Float:Z1Float:X2Float:Y2Float:Z2
       
GetPlayerPos(playeridX1Y1Z1); 
       
GetPlayerPos(aimidX2Y2Z2); 
//     new keys, own, pwn; 
//     GetPlayerKeys(playerid, keys, own, pwn); 
//     if(!(keys & KEY_SECONDARY_ATTACK))return false; 
        
new Float:fDistance floatsqroot(floatpower(floatabs(X1-X2), 2) + floatpower(floatabs(Y1-Y2), 2)); 
        if(
fDistance 100){ 
        new 
Float:A
        
GetPlayerFacingAngle(playeridA); 
        
X1 += (fDistance floatsin(-Adegrees)); 
        
Y1 += (fDistance floatcos(-Adegrees)); 
        
fDistance floatsqroot(floatpower(floatabs(X1-X2), 2) + floatpower(floatabs(Y1-Y2), 2)); 
        if(
fDistance 1.0){ 
            return 
true
        } 
    } 
    return 
false

Try This
Reply


Messages In This Thread
warning 219: - by s3ek - 08.03.2015, 04:14
Re: warning 219: - by Finnick - 08.03.2015, 04:18
Re: warning 219: - by s3ek - 08.03.2015, 04:18
Re: warning 219: - by Finnick - 08.03.2015, 04:23
Re: warning 219: - by s3ek - 08.03.2015, 04:32
Re: warning 219: - by Finnick - 08.03.2015, 05:14
Re: warning 219: - by X337 - 08.03.2015, 05:37

Forum Jump:


Users browsing this thread: 1 Guest(s)