This is a check I make to see if the player has a crowbar, then if he does
not, give him one.  Works fine for me.


   if (!pPlayer->HasNamedPlayerItem("weapon_crowbar"))
    pPlayer->GiveNamedItem( "weapon_crowbar" );


Dave


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

Reply via email to