--
[ 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