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