Problem with my mod

New Member
💻 Oldtimer
Joined
Nov 30, 2001
Messages
1,299
Best answers
0
I can't get my mod to work right: I want to check the player's teamname, so I can assign things accordingly.
At the moment, I have this code (in PlayerSpawn):

if (pPlayer->m_szTeamName == "Attackers")
{
pPlayer->GiveNamedItem( "weapon_9mmAR" );
}


The team name is assigned correctly, but when I check it, it just doesn't work the way I want...
Can someone help me out?
Oh and by the way, what command is used to set a player's model?
 
New Member
Joined
Oct 27, 2002
Messages
139
Best answers
0
sry blade not familer with stuff like this... check umm cs.server.net or something like that ??
 
New Member
💻 Oldtimer
Joined
Nov 30, 2001
Messages
1,299
Best answers
0
Hib, don't post useless crap like that ;( (aka SPAM)

cs.server.net doesn't seem to exist... o_o

*EDIT*
Ok I fixed the teamname check :cool:
I also know the command to set a player's model, and I know I have to precache it first... But somehow it doesn't get the right model.

This is the code atm:

PRECACHE_MODEL("models/player/attmodel/attmodel.mdl");
SET_MODEL(ENT(pPlayer->pev), "models/player/attmodel/attmodel.mdl");

The directories exist and everything, but the engine keeps spawning everyone as "robo" models.
 
Senior Member
✔️ HL Verified
Joined
Jan 7, 2003
Messages
859
Best answers
0
hmm blade don't wanna offend you but is an other forum maybe a better place like this:

http://www.thewavelength.net/forums/index.phpact=SC&c=1
or
http://dynamic.gamespy.com/~botman/yabb/YaBB.pl?board=4 (botman has some good mod stuff also)

btw i'm not an good mod maker but for bots u have to use this:
SET_CLIENT_KEY_VALUE(clientIndex, infobuffer, "model", "gina" ); (for model gina i guess,actually model gina is the model you choose in the customize section in hl-deatmatch)

hope you get it

cu
 

Users who are viewing this thread

Top Bottom