[ Converted text/html to text/plain ] please remove me from your list. I asked twice already nicely. -------------------------------------------------------------------------------------------------------------------------------------------------- This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. -------------------------------------------------------------------------------------------------------------------------------------------------- Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par retour de courri
------------------------------------------------------------------------------ From: [EMAIL PROTECTED] Reply-To: [email protected] To: [email protected] Subject: hlcoders digest, Vol 1 #2380 - 2 msgs Date: Sun, 26 Feb 2006 06:26:10 -0800
Send hlcoders mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit http://list.valvesoftware.com/mailman/listinfo/hlcoders or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of hlcoders digest..." Today's Topics: 1. Re: Best way to kick a player? (Benjamin Davison) 2. Re: Best way to kick a player? (Harry Bock) --__--__-- Message: 1 Date: Sun, 26 Feb 2006 03:35:35 +0000 From: "Benjamin Davison" <[EMAIL PROTECTED]> To: [email protected] Subject: Re: [hlcoders] Best way to kick a player? Reply-To: [email protected] -- [ Picked text/plain from multipart/alternative ] If only there was a nice -> kick function, I'm too tired to work this problem out. I'll come back to it tommorow. On 2/26/06, Scott Loyd <[EMAIL PROTECTED]> wrote: > > -- > [ Picked text/plain from multipart/alternative ] > kickid <ID> <Reason> > No edict in the command... To get the ID from an edict_t: > engine->GetPlayerUserId(edict_t *); > > > > On 2/25/06, Benjamin Davison <[EMAIL PROTECTED]> wrote: > > > > -- > > [ Picked text/plain from multipart/alternative ] > > Thanks, but having a problem. This is for an actual mod not a plugin, > but > > it's probably the same principal. > > > > engine->ServerCommand(UTIL_VarArgs("kickid %i %s\n", > > pPlayer->GetNetworkable()->GetEdict()); Does not get the edict. > > > > On 2/26/06, Scott Loyd <[EMAIL PROTECTED]> wrote: > > > > > > -- > > > [ Picked text/plain from multipart/alternative ] > > > http://osa.3dwire.net/ Download the source, crack open > > CAdminCommandKick > > > I > > > believe. > > > > > > On 2/25/06, Benjamin Davison <[EMAIL PROTECTED]> wrote: > > > > > > > > -- > > > > [ Picked text/plain from multipart/alternative ] > > > > Can't find any examples from commands like "kick" and "kickid" > > > > > > > > -- > > > > - Benjamin Davison > > > > -- > > > > > > > > _______________________________________________ > > > > To unsubscribe, edit your list preferences, or view the list > archives, > > > > please visit: > > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > > > > > -- > > > > > > _______________________________________________ > > > To unsubscribe, edit your list preferences, or view the list archives, > > > please visit: > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > > > > > > -- > > - Benjamin Davison > > -- > > > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > -- > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > -- - Benjamin Davison -- --__--__-- Message: 2 Date: Sat, 25 Feb 2006 23:19:29 -0500 From: "Harry Bock" <[EMAIL PROTECTED]> To: [email protected] Subject: Re: [hlcoders] Best way to kick a player? Reply-To: [email protected] -- [ Picked text/plain from multipart/alternative ] If you really want to make it easy for yourself, you could always make another method in CBasePlayer or whatever like so: inline void CBasePlayer::kick( const char *reason ) { char buffer[64]; sprintf(buffer, "kick %d %s\n", engine->GetPlayerUserId(GetNetworkable()->GetEdict()), reason); engine->ServerCommand(buffer); } On 2/25/06, Benjamin Davison <[EMAIL PROTECTED]> wrote: > > -- > [ Picked text/plain from multipart/alternative ] > If only there was a nice -> kick function, I'm too tired to work this > problem out. > > I'll come back to it tommorow. > > On 2/26/06, Scott Loyd <[EMAIL PROTECTED]> wrote: > > > > -- > > [ Picked text/plain from multipart/alternative ] > > kickid <ID> <Reason> > > No edict in the command... To get the ID from an edict_t: > > engine->GetPlayerUserId(edict_t *); > > > > > > > > On 2/25/06, Benjamin Davison <[EMAIL PROTECTED]> wrote: > > > > > > -- > > > [ Picked text/plain from multipart/alternative ] > > > Thanks, but having a problem. This is for an actual mod not a plugin, > > but > > > it's probably the same principal. > > > > > > engine->ServerCommand(UTIL_VarArgs("kickid %i %s\n", > > > pPlayer->GetNetworkable()->GetEdict()); Does not get the edict. > > > > > > On 2/26/06, Scott Loyd <[EMAIL PROTECTED]> wrote: > > > > > > > > -- > > > > [ Picked text/plain from multipart/alternative ] > > > > http://osa.3dwire.net/ Download the source, crack open > > > CAdminCommandKick > > > > I > > > > believe. > > > > > > > > On 2/25/06, Benjamin Davison <[EMAIL PROTECTED]> wrote: > > > > > > > > > > -- > > > > > [ Picked text/plain from multipart/alternative ] > > > > > Can't find any examples from commands like "kick" and "kickid" > > > > > > > > > > -- > > > > > - Benjamin Davison > > > > > -- > > > > > > > > > > _______________________________________________ > > > > > To unsubscribe, edit your list preferences, or view the list > > archives, > > > > > please visit: > > > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > > > > > > > > -- > > > > > > > > _______________________________________________ > > > > To unsubscribe, edit your list preferences, or view the list > archives, > > > > please visit: > > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > > > > > > > > > > > -- > > > - Benjamin Davison > > > -- > > > > > > _______________________________________________ > > > To unsubscribe, edit your list preferences, or view the list archives, > > > please visit: > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > > -- > > > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > -- > - Benjamin Davison > -- > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > -- And now, all-zombie radio... -- --__--__-- _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders End of hlcoders Digest
------------------------------------------------------------------------------ Powerful parental controls improve your peace of mind with MSN Premium.[1] Join now and get the first two months FREE* ===References:=== 1. http://g.msn.com/8HMBENCA/2755??PS=47575 _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

