Distance :)
#3

remove ur old and add this.
PHP Code:
stock GetPlayerSpeed(playerID)
{
    new 
Float:ST[4];
    if(
IsPlayerInAnyVehicle(playerID))
    
GetVehicleVelocity(GetPlayerVehicleID(playerID),ST[0],ST[1],ST[2]);
    else 
GetPlayerVelocity(playerID,ST[0],ST[1],ST[2]);
    
ST[3] = floatsqroot(floatpower(floatabs(ST[0]), 2.0) + floatpower(floatabs(ST[1]), 2.0) + floatpower(floatabs(ST[2]), 2.0)) * 200.28625;
    return 
floatround(ST[3]);

and here is

PHP Code:
format(STRINGSPPEED,50,"* Speed: %f",  GetPlayerSpeed(playerID)); 
Reply


Messages In This Thread
Distance :) - by audriuxxx - 25.02.2013, 09:46
AW: Distance :) - by NaS - 25.02.2013, 09:55
Re: Distance :) - by sscarface - 25.02.2013, 09:56
Re: Distance :) - by Babul - 25.02.2013, 11:14

Forum Jump:


Users browsing this thread: 1 Guest(s)