make_deathmsg usage
Alright so I'm using make_deathmsg but there is an argument.
Since the fourth param has to be const, can I do this: PHP Code:
|
Re: make_deathmsg usage
No, get_user_weapon( id ) returns the weapon id of the currently carried weapon. You must do this:
PHP Code:
Code:
/* Id of weapons in CS */ |
Re: make_deathmsg usage
Quote:
|
Re: make_deathmsg usage
Code:
|
Re: make_deathmsg usage
Quote:
Or isn't it required at all? Also... don't you need the actual entity index for cs_get_weapon_id? It should be fine with just get_user_weapon(iAttacker), as far as I know. |
Re: make_deathmsg usage
The get_weaponname() function requires the CSW_* id.
Code:
|
Re: make_deathmsg usage
Quote:
|
Re: make_deathmsg usage
Quote:
|
Re: make_deathmsg usage
I was just under the assumption that get_weaponname( ) would return the "weapon_name". But, I'm not sure.
As for the const thing I was talking about earlier, I would just do something like this: PHP Code:
|
Re: make_deathmsg usage
Quote:
"weapon_ak47" "ak47" can be accessed with name[ 7 ]. PHP Code:
PHP Code:
|
| All times are GMT -4. The time now is 00:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.