function cc_ulxfind( userid, args, argv, argc )
local target = getUser( userid, argv[ 1 ] )
if target == nil then
return
end
local mepos = _EntGetPos(userid)
local userpos = _EntGetPos(target)
local toadd = vector3(0,0,2000)
local toadd2 = vector3(0,0,40)
local topme = vecAdd( mepos, toadd2);
local toppos = vecAdd( userpos, toadd);
_EffectInit()
_EffectSetEnt(target)
_EffectSetOrigin(userpos)
_EffectSetStart(mepos)
_EffectSetScale(50)
_EffectSetMagnitude(5)
_EffectSetRadius(10)
_EffectDispatch("FadingLineTeam")
_EffectInit()
_EffectSetEnt(target)
_EffectSetOrigin(userpos)
_EffectSetStart(topme)
_EffectSetScale(200)
_EffectSetMagnitude(10)
_EffectSetRadius(20)
_EffectDispatch("GunShipTracer")
_EffectInit()
_EffectSetEnt(target)
_EffectSetOrigin(userpos)
_EffectSetStart(toppos)
_EffectSetScale(50)
_EffectSetMagnitude(5)
_EffectSetRadius(10)
_EffectDispatch("FadingLineTeam")
local player = _PlayerInfo( target, "name");
_GModText_Start( "CloseCaption_Bold" );
_GModText_SetColor( 255,0,0,255 );
_GModText_SetTime( 10, 0, 0.5 ); --How long it stays, and the fading times
_GModText_SetEntityOffset( vector3( 0, 0, 40 ) ); --Messages appear 35 Units above Players
_GModText_SetEntity( target ); --Entity/Player the message will follow
_GModText_SetText( "Player: "..player ); --Set the message
_GModText_Send( userid, 50+userid );
_PrintMessage( userid, HUD_PRINTTALK, "Player "..player.." has been located." )
end
--Optional, I'd prefer if it was left alone--
function givecred()
for i = 1, _MaxPlayers() do
ulx_tsay( i, "Find Player script by Golden-Death." ) ;
end
end
CONCOMMAND("findcredit", givecred)
--End optional--
ULX_CONCOMMAND( "ulx_find", cc_ulxfind, _, "Locates a player for you", 1, "!find" )