GetPlayerDistanceFromPoint
#4

pawn Код:
CMD:i( playerid, params[ ] )
{
    new ID, string[ 128 ], string2[ 128 ], name[ MAX_PLAYER_NAME ];
    new Float:Distance = GetDistanceBetweenPlayers(playerid,ID);
    if( sscanf( params, "u", ID ) ) return SendClientMessage( playerid, COLOR_WHITE, "USAGE: /i [id]" );
    if( IsPlayerConnected( ID ) == 0) return SendClientMessage( playerid, COLOR_RED, "Player is not connected!" );
    GetPlayerName( ID, name, MAX_PLAYER_NAME );

    new carid = GetPlayerVehicleID( ID );
    TextDrawShowForPlayer( playerid, text44 );
    TextDrawShowForPlayer( playerid, text45 );
    TextDrawShowForPlayer( playerid, PCBOX );
    if( !IsPlayerInAnyVehicle( ID ) )
    {
        format( string, 128, "~y~Player Info: ~r~~h~%s[%d]~n~~n~~g~Location:~w~%s~n~~g~Distance:~w~%s~n~~g~Vehicle:~w~On Foot", name, ID, ReturnPlayerZone( ID ), Distance );
    }
    else
    {
        format( string, 128, "~y~Player Info: ~r~~h~%s[%d]~n~~n~~g~Location:~w~%s~n~~g~Distance:~w~%s~n~~g~Vehicle:~w~%s", name, ID, ReturnPlayerZone( ID ), Distance, VehicleNames[ GetVehicleModel( carid ) - 400 ] );
    }
    TextDrawSetString( text44, string );
    format( string2, 128, "~n~~n~~n~~n~~n~~n~~n~~w~Type ~r~~h~LMB ~w~For Hide These~n~~w~Boxes!" );
    TextDrawSetString( text45, string2 );
    return 1;
}
Updated to this but shows
http://i.imgur.com/D9O2p.jpg
Reply


Messages In This Thread
GetDistanceBetweenPlayers +rep - by SnG.Scot_MisCuDI - 10.03.2012, 17:40
Re: GetPlayerDistanceFromPoint - by IstuntmanI - 10.03.2012, 17:55
Re: GetPlayerDistanceFromPoint - by Konstantinos - 10.03.2012, 18:02
Re: GetPlayerDistanceFromPoint - by SnG.Scot_MisCuDI - 10.03.2012, 19:40
Re: GetPlayerDistanceFromPoint - by SnG.Scot_MisCuDI - 10.03.2012, 21:58
Re: GetPlayerDistanceFromPoint - by [ABK]Antonio - 10.03.2012, 22:26
Re: GetPlayerDistanceFromPoint - by SnG.Scot_MisCuDI - 10.03.2012, 22:28
Re: GetPlayerDistanceFromPoint - by eesh - 11.03.2012, 03:50
Re: GetPlayerDistanceFromPoint - by SnG.Scot_MisCuDI - 11.03.2012, 06:48

Forum Jump:


Users browsing this thread: 1 Guest(s)