CSPLague
[STOCK] Anlık Hızı Hesaplama - Printable Version

+- CSPLague (https://www.csplague.com)
+-- Forum: CS 1.6 Plugin (Eklenti) Bölümü (https://www.csplague.com/forumdisplay.php?fid=6)
+--- Forum: [KOD] Pawn Script (https://www.csplague.com/forumdisplay.php?fid=82)
+--- Thread: [STOCK] Anlık Hızı Hesaplama (/showthread.php?tid=8782)



[STOCK] Anlık Hızı Hesaplama - akcaliberkk - 22-10-13

Açıklama :

Oyuncunun anlık hızını (velocity) bulabilirsiniz.


Yapımcı: peNgueN


Gereken Modüller ve Kütüphaneler :
Engine

PHP Code:
stock Floatget_user_velocity_oneindex ) {   
    static 
FloatVelocity];    
    
entity_get_vectorindexEV_VEC_velocityVelocity );        
    static 
Floatnum;   
    
num floatsqrootVelocity] * Velocity] + Velocity] * Velocity] );        
    return 
num;


Ayrıntılar :

1. parametre =Kullanıcı indexi [ 1-32 ]

Örnek :

PHP Code:
Kullanılacak Olan : %f Yani Float Bir Değer.get_user_velocity_oneid );
client_printidprint_center"Hizin : %.2f"get_user_velocity_oneid ) ); 



Cevap: [STOCK] Anlık Hızı Hesaplama - bilbaz - 22-10-13

Teşekkürler.
DR'de çok kullanılır.


Cevap: [STOCK] Anlık Hızı Hesaplama - RevoLutioNs - 14-04-15

saol