It's just a couple of seconds of the time for the good coders/developers.
I know I have to put in GAME_DLL 1 and cbase.h. But then still it doesn't
work.
What I mean is that I want to give myself, for example, 150 health. How?

And by the way, is there a command to put the server logs off?
If I change CVARs like "mp_friendlyfire1" it shows:

- "Server cvar mp_friendlyfire has changed to 1"
Is there a command to put it off?


Thanks again :))
But please, please I'm waiting all night just for an answer :(
- Frank




> *sigh*
>
> People, I'm a newbie to C++.
> I am just teaching it for some months now.
> Like the other guy was saying:
>
> ====================================
> "static_cast<CBasePlayer*> the CBaseEntity, then do
> Event_Killed(CTakeDamageInfo( blah )); to kill him, then Event_Dying()"
>
> ==and==
> "just use SetHealth and GetHealth - but make sure to check if it
> goes to 0 or below, as you'll have to kill him yourself if it happens."
> ====================================
> Yes, maybe for the real coders this is easy.
> I tried to figure it out myself now for weeks, but still cannot do it.
> Is there someone who can realy help me with a piece of code or something?
>
> My code is like this now:
> ====================================
> Q_snprintf( gBuffer, 128, "Setting your health");  // Message
>       engine->ClientPrintf(pEntity, gBuffer );
>
>       // It has to come here, the health that goes up
>
>       CreateAMessage(pEntity,"msg",gBuffer,engine->IndexOfEdict(pEntity));
>       engine->ClientCommand(pEntity,gBuffer);    // Message again
> ====================================
>
> So please, anobody?
>
> Thanks.
> Frank Weima.
>
>
>
> ----- Original Message -----
> From: "Lance Vorgin" <[EMAIL PROTECTED]>
> To: <hlcoders@list.valvesoftware.com>
> Sent: Thursday, January 20, 2005 12:21 AM
> Subject: Re: [hlcoders] Player command - Health control? Damage?
>
>
> > You need to include a ton of server project headers. Just #define
> > GAME_DLL 1 at the top and take all the #includes from util.cpp :/
> >
> > Update killed the Event_ stuff for the time being (how mean of them).
> > CBaseEntity::Teleport still works.
> >
> > _______________________________________________
> > 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
>


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to