SRCDS Steam group


auto join tag
#1
does anny one know how to make a script that gives a player a tag like (geust) or (admin) when they log on to the server.
pleas help me Big Grin
Reply
#2
its totally possible, but it would change their name everytime they went into the room.
Reply
#3
You need visual studio 2003 (thats the easiest one without rebuilding stuff) for C++, then you can do the following:

you have to install the SourceSDK. Then add a mod, go to the mod install folder>utils>serverplugin_sample>serverplugin_empty.vcproj

It opens in visual studio, open up serverplugin_empty.cpp from the tree on the left. Go to some point for example when the client connects and make a function to execute a clientcommand name to add the tag to it.

compile it and run it on your server
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#4
It would be so much easier to script it in Eventscripts. You could have a group record all there names into a database then make a menu pop up and have it set back to there original name before they leave.
Reply
#5
hexitnow Wrote:It would be so much easier to script it in Eventscripts. You could have a group record all there names into a database then make a menu pop up and have it set back to there original name before they leave.

True, lol didnt even think about thatRolleyes

I always make my own stuff, I hate to use stuff what other people made because it never does what you want it to do.
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#6
hexitnow Wrote:It would be so much easier to script it in Eventscripts. You could have a group record all there names into a database then make a menu pop up and have it set back to there original name before they leave.

Good thiking but it's not possible to change their names back to their original names before they leave unless they trigger an event or an action. Nothing can be executed on the clients once they click disconnect button or type quit in the console or click quit button on the bottom left corner or join another server by double cliking it on the list.
Reply
#7
A chat trigger would work.
Reply
#8
such as bye, gg, so long, farewell, goodbye, buh bye, etc...
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)