|
|
Step 1
Ok.. This tutorial is going to help you keep suiciders off your server
You also have the option of letting the players get a chance to respawn :)
O'well.. Open up the client.qc file, and scroll down to the "ClientKill" section, shown below.
/*
============
ClientKill
Player entered the suicide command
============
*/
void() ClientKill =
{
bprint (self.netname);
bprint (" suicides\n");
set_suicide_frame ();
self.modelindex = modelindex_player;
self.frags = self.frags - 2; // extra penalty
respawn ();
};
Step 2
What we have to do, is to replace that part with the text shown below.
void() ClientKill =
{
self.netname = "King Llama" // makes sure they regret it
bprint (self.netname);
bprint ("suicides: what a dumbass!"); // changed suicide message
set_suicide_frame (); // Remove if you don't want the LLama to re-spawn!
self.modelindex = modelindex_player;
self.frags = self.frags - 5; // extra penalty.. note the lack of the
//respawn (). This makes sure they have to leave.
};
Compile, and enjoy! Try running this on you're server! have fun, and don't forget to not suicide :)
Note: This lesson is under construction. A follow up is comming soon!
|