[TUT] User Icon Status
On this tutorial, I will examplain / show examples about user status icon.
Status icon is a hud icon placed in the screen of player, and is used in some cases for indicates user status. Can use this for example if an player have on him equip and rocket laucher, to show an icon to indicate that ; it's for aspect ;) To make to show at a player an hud icon, the icon must be created in a message constant. Now, let's start: • First of all, we will declare a variabile for get user msgid. Variable will be called iconstatus. So, PHP Code:
PHP Code:
We start with: PHP Code:
Are available 3 types of show: 0 = Hide 1 = Show 2 = Flash So we wil use: PHP Code:
• After, will write string the name of sprite icon Are available 88 icon status. I maked screenshots where i saw necessary one. 1. dmg_rad: [IMG]http://img95.**************/img95/5918/dmgradmh4.jpg[/IMG] 2. dmg_heat: [IMG]http://img178.**************/img178/4803/dmgheatnd4.jpg[/IMG] 3. dmg_gas: [IMG]http://img72.**************/img72/3686/dmggaser1.jpg[/IMG] 4. dmg_drown: [IMG]http://img72.**************/img72/6564/dmgdrownps5.jpg[/IMG] 5. dmg_cold: [IMG]http://img291.**************/img291/7311/dmgcolddw9.jpg[/IMG] 6. dmg_bio: [IMG]http://img246.**************/img246/9513/dmgbiokb4.jpg[/IMG] 7. dmg_shock: [IMG]http://img50.**************/img50/8814/dmgshocksh9.jpg[/IMG] 8. item_longjump: [IMG]http://img59.**************/img59/5223/itemlongjumpyr6.jpg[/IMG] 9. item_battery: [IMG]http://img62.**************/img62/5586/itembatteryok3.jpg[/IMG] 10. item_healthkit: 11. flash_beam: 12. d_knife: Also are available all weapons with prefix d_* .Ex: d_ak47, d_awp, d_mp5navy. 13. cross: 14. stopwatch: 15. suit_full: • I didn't take screenshots to all icons, because rests of them are just lines or stuff like that, and i don't saw any point to use it. • I used name of icons but without screenshots because limit of images on a thread is 10 :( • I want to give some credits to Alka because helped me to make last snapshots . So, we will use PHP Code:
PHP Code:
PHP Code:
PHP Code:
There is.. Code:
selection Have fun |
Re: [TUT] User Icon Status
...
|
Re: [TUT] User Icon Status
I know its just an example but it would be better to cache whether the player has been send the message rather than send it over and over. Then when they release attack, remove it. D:
|
Re: [TUT] User Icon Status
Furthermore this may lead to client's overflow.
|
Re: [TUT] User Icon Status
Quote:
|
Re: [TUT] User Icon Status
Quote:
2. Changed the example ;) |
Re: [TUT] User Icon Status
Wont this only work in CS?
|
Re: [TUT] User Icon Status
Quote:
|
Re: [TUT] User Icon Status
StatusIcon is not in NS, and if memory serves it's not in DoD either. I'm not too sure aboot that one, though
It's in the standard SDK, so most mods still have it. |
Re: [TUT] User Icon Status
Quote:
|
All times are GMT -4. The time now is 13:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.