[FilterScript] Antibug Collection
#8

Stepashka, ошибко
pawn Code:
ST[0] = floatsqroot(floatpower(ST[0], 2.0) + floatpower(ST[1], 2.0) + floatpower(ST[2], 2.0));
    return floatround(ST[3])*100;
я бы так сделал:
pawn Code:
stock GetPlayerSpeed(playerid)
{
    new Float:ST[3];
    if(IsPlayerInAnyVehicle(playerid))GetVehicleVelocity(GetPlayerVehicleID(playerid),ST[0],ST[1],ST[2]);
    else GetPlayerVelocity(playerid,ST[0],ST[1],ST[2]);
    return floatround( floatsqroot(floatpower(ST[0], 2.0) + floatpower(ST[1], 2.0) + floatpower(ST[2], 2.0)) )*100;
}
Reply


Messages In This Thread
Antibug Collection - by ^Woozie^ - 12.08.2010, 09:01
Re: [FS] Antibug Collection - by Stepashka - 12.08.2010, 09:04
Re: [FS] Antibug Collection - by ^Woozie^ - 12.08.2010, 09:07
Re: [FS] Antibug Collection - by MX_Master - 12.08.2010, 09:09
Re: [FS] Antibug Collection - by ^Woozie^ - 12.08.2010, 09:11
Re: [FS] Antibug Collection - by Stepashka - 12.08.2010, 09:23
Re: [FS] Antibug Collection - by Stepashka - 12.08.2010, 09:25
Re: [FS] Antibug Collection - by ZiGGi - 12.08.2010, 10:12
Re: [FS] Antibug Collection - by MX_Master - 12.08.2010, 13:53
Re: [FS] Antibug Collection - by ^Woozie^ - 12.08.2010, 14:14

Forum Jump:


Users browsing this thread: 2 Guest(s)