I need this script
#2

Example:
pawn Код:
public OnPlayerUpdate( playerid )
{
    if(GetPlayerSpeed(playerid) > 100)
    {
        SendClientMessage(playerid,-1,"your speed is over 100!");
    }
    return 1;
}
stock GetPlayerSpeed( playerid )
{
    new Float:ST[4];
    GetVehicleVelocity(GetPlayerVehicleID( 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)) * 179.28625;
    return floatround(ST[3]);
}
Reply


Messages In This Thread
I need this script - by Expert99 - 06.10.2013, 17:24
Re: I need this script - by DaRk_RaiN - 06.10.2013, 17:41
Re: I need this script - by Expert99 - 06.10.2013, 18:03
Re: I need this script - by Expert99 - 08.10.2013, 18:50

Forum Jump:


Users browsing this thread: 3 Guest(s)