Raised This Month: $51 Target: $400
 12% 

Aliases


Post New Thread Reply   
 
Thread Tools Display Modes
anxiro
Member
Join Date: Jan 2005
Old 02-20-2005 , 05:23  
Reply With Quote #11

Eeehhhmm...

Wasn't there a SDK update ages ago which DOES the command?
helpers->???
anxiro is offline
Send a message via ICQ to anxiro
anxiro
Member
Join Date: Jan 2005
Old 02-20-2005 , 05:36  
Reply With Quote #12

Code:
class IServerPluginHelpers
{
public:
   // block of commenting
   virtual void CreateMessage( edict_t *pEntity, DIALOG_TYPE type, KeyValues *data, IServerPluginCallbacks *plugin ) = 0;
   virtual void ClientCommand( edict_t *pEntity, const char *cmd ) = 0;
};
That should do it. It will block the alias command "kill", "cmd" and stuff. This wás in a SDK update. Is this what u needed?



By the way, Beetle. I can't get the CbaseEntity::Teleport to work. Can you create me a 'void' or anything simular to this, please?

- Frank
anxiro is offline
Send a message via ICQ to anxiro
BeetleFart
SourceMod Donor
Join Date: Apr 2004
Old 02-20-2005 , 06:26  
Reply With Quote #13

Quote:
Originally Posted by anxiro
Code:
class IServerPluginHelpers
{
public:
   // block of commenting
   virtual void CreateMessage( edict_t *pEntity, DIALOG_TYPE type, KeyValues *data, IServerPluginCallbacks *plugin ) = 0;
   virtual void ClientCommand( edict_t *pEntity, const char *cmd ) = 0;
};
That should do it. It will block the alias command "kill", "cmd" and stuff. This wás in a SDK update. Is this what u needed?



By the way, Beetle. I can't get the CbaseEntity::Teleport to work. Can you create me a 'void' or anything simular to this, please?

- Frank

Im not sure what your asking...
Ive used
CBaseEntity * be=player->GetUnknown()->GetBaseEntity();
if (be)
{
Vector v1(1100,1100,110);
Vector v2(0,0,0);
be->Teleport(&v2,0,&v1);
}


and

player->GetUnknown()->GetBaseEntity()->Teleport(&vOrigin, NULL, &vVelocity);


and thanks..I didnt know they added clientcommand to helpers.
__________________
CSource Server:
69.90.34.10:27015 Beetlesmod.com And CS-Addicts{US}



http://www.clanuseast.com
BeetleFart is offline
anxiro
Member
Join Date: Jan 2005
Old 02-20-2005 , 07:13  
Reply With Quote #14

Thats no problem. I read it weeks ago.
--

About the "CBaseEntity", I tried a lot. Working for weeks or maybe a month now to get the teleport work. Still doesn't work. I included all needed files. After including cbase.h and baseentity.h I get over 100 errors like a lot more coders have. How did you fixed this?


I also tried a lot of codes, but nothing seems to work.
Can you help me a little?
I know a lot of people ask you, so if you don't have time I will try longer.

- Frank
anxiro is offline
Send a message via ICQ to anxiro
BeetleFart
SourceMod Donor
Join Date: Apr 2004
Old 02-20-2005 , 07:33  
Reply With Quote #15

Quote:
Originally Posted by anxiro
Thats no problem. I read it weeks ago.
--

About the "CBaseEntity", I tried a lot. Working for weeks or maybe a month now to get the teleport work. Still doesn't work. I included all needed files. After including cbase.h and baseentity.h I get over 100 errors like a lot more coders have. How did you fixed this?


I also tried a lot of codes, but nothing seems to work.
Can you help me a little?
I know a lot of people ask you, so if you don't have time I will try longer.

- Frank


I added this:

#define GAME_DLL 1
#include "engine/IStaticPropMgr.h"
#include "cbase.h"
#include "globalstate.h"
#include "isaverestore.h"
#include "client.h"
#include "decals.h"
#include "gamerules.h"
#include "entityapi.h"
#include "entitylist.h"
#include "eventqueue.h"
#include "hierarchy.h"
#include "basecombatweapon.h"
#include "const.h"
#include "player.h"
#include "ndebugoverlay.h"
#include "physics.h"
#include "model_types.h"
#include "team.h"
#include "sendproxy.h"
#include "IEffects.h"
#include "vstdlib/random.h"
#define GAME_DLL 1
#include "networkvar.h"
#include "baseentity.h"
#include "collisionutils.h"
#include "coordsize.h"
#include "vstdlib/strtools.h"
#include "engine/IEngineSound.h"
#include "physics_saverestore.h"
#include "saverestore_utlvector.h"
#include "bone_setup.h"
#include "vcollide_parse.h"
#include "filters.h"
#include "te_effect_dispatch.h"
#include "AI_Criteria.h"
#include "AI_ResponseSystem.h"
#include "world.h"
#include "globals.h"
#include "saverestoretypes.h"
#include "SkyCamera.h"
#include "sceneentity.h"
#include "game.h"
#include "tier0/vprof.h"
#ifndef __linux__
#include "ai_basenpc.h"
#endif


there are a few other changes that need to be made in a couple of the headers..just dont remember what they are.
__________________
CSource Server:
69.90.34.10:27015 Beetlesmod.com And CS-Addicts{US}



http://www.clanuseast.com
BeetleFart is offline
anxiro
Member
Join Date: Jan 2005
Old 02-20-2005 , 07:47  
Reply With Quote #16

Hey beetle. I had to remove something with "pcmd". Below all of the code I think. Now it works. Thanks a lot. You saved me another month with my Girlfirend


Thanx.
btw, when does your new adminmod come out?
anxiro is offline
Send a message via ICQ to anxiro
Sekkusu
Junior Member
Join Date: Dec 2004
Old 02-21-2005 , 20:19  
Reply With Quote #17

Quote:
Originally Posted by BeetleFart
Quote:
Originally Posted by anxiro
Thats no problem. I read it weeks ago.
--

About the "CBaseEntity", I tried a lot. Working for weeks or maybe a month now to get the teleport work. Still doesn't work. I included all needed files. After including cbase.h and baseentity.h I get over 100 errors like a lot more coders have. How did you fixed this?


I also tried a lot of codes, but nothing seems to work.
Can you help me a little?
I know a lot of people ask you, so if you don't have time I will try longer.

- Frank


I added this:

STUFF

there are a few other changes that need to be made in a couple of the headers..just dont remember what they are.

Remove the FStrEq function from your CPP and it compiles fine here. Lemme try it with actually using shit.
Sekkusu is offline
BeetleFart
SourceMod Donor
Join Date: Apr 2004
Old 02-23-2005 , 20:12  
Reply With Quote #18

Quote:
Originally Posted by anxiro
Code:
class IServerPluginHelpers
{
public:
   // block of commenting
   virtual void CreateMessage( edict_t *pEntity, DIALOG_TYPE type, KeyValues *data, IServerPluginCallbacks *plugin ) = 0;
   virtual void ClientCommand( edict_t *pEntity, const char *cmd ) = 0;
};
That should do it. It will block the alias command "kill", "cmd" and stuff. This wás in a SDK update. Is this what u needed?



By the way, Beetle. I can't get the CbaseEntity::Teleport to work. Can you create me a 'void' or anything simular to this, please?

- Frank
If I try using the helpers->ClientCommand(pEntity,"say This is a test\n");
it cuts off the first word...so I padded it with 4 chars and it seems to work..
but now I get random server crashes...
how do I use the helpers->ClientCommand?
__________________
CSource Server:
69.90.34.10:27015 Beetlesmod.com And CS-Addicts{US}



http://www.clanuseast.com
BeetleFart is offline
anxiro
Member
Join Date: Jan 2005
Old 02-26-2005 , 07:18  
Reply With Quote #19

Sorry beetle for late response:


helpers->ClientCommand(pEnt, "kill")

it will not run any aliases, but also it will/cannot not run any other clientside commands, including the "name". But this is how.


btw, whats the new level/number for Csay.
index was 4, but it's not 3,5 etc. after the update.
anxiro is offline
Send a message via ICQ to anxiro
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode