Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: FIF-XC on January 02, 2006, 06:15:49 AM
-
Hi, im busy with something (Adding something to ULX)
And i got some qeustions.
1. Can someone write me a good working adminlist function (the one on gmod.wiki wont work propely)
2. I've written some things with the event function PlayerSpawn/Active, and when a player spawns/joins
i have this code that all players have a floating text above their heads with Guests/Vips/Admins
but after they got killed, those players say, "he the floating text is gone" ... i thought the EventSpawn
would be triggered, but again ...im a newbie so... can someone help me out here.
Greets and Thx XC
-
you could check my floating text plugin here:
http://forums.ulyssesmod.net/index.php/topic,50.0.html
and my admin check here:
http://forums.ulyssesmod.net/index.php/topic,66.0.html
I imagine your plugin should look something like this for the most part:
function eventPlayerSpawn( spawner )
if hasAccess( spawner, ACCESS_KICK ) == true then
_Msg("Authorized \n")
_GModText_Start( "Default" );
_GModText_SetColor( REDVALUE,GREENVALUE,BLUEVALUE,SLPHAVALUE );
_GModText_SetTime( 999, 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( spawner ); --Entity/Player the message will follow
_GModText_SetText( Admin ); --Set the message
_GModText_Send( 0, 50+userid );
else
end
end