10.03.2012, 19:40
(
Последний раз редактировалось SnG.Scot_MisCuDI; 10.03.2012 в 21:14.
)
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;
}
http://i.imgur.com/D9O2p.jpg