glow Smoke Grenade
hello,
code PHP Code:
i just trying to do if a player throw a smoke grenade , the smoke grenade will be in glow . teror = red glow ct = blue glow . can somone fix it ? thx . |
Re: glow Smoke Grenade
I would rather hook SetModel or Spawn.
Anyway you have some errors: - In charsmax it should be sModel (or szModel if you replace it in the other places) - In cs_get_user_team the index should be id, not iEnt. - Optional: You could use elseif (because you need only one condition, player can't be T and CT at the same time) or a conditional operator for setting the colors. |
Re: glow Smoke Grenade
i changed what u said, and it stell not working :s
PHP Code:
Quote:
|
Re: glow Smoke Grenade
I forgot to say that you should use set_pev instead of pev for rendercolor.
For blocking the explosion you can set pev_dmgtime to a higher value or removing the FL_ONGROUND flag: PHP Code:
|
Re: glow Smoke Grenade
omg , its working :P
Thank you . 1 more question, why its not block the smoke explode : PHP Code:
NVM , SOLVED .. THX U FOR THE HELP! |
Re: glow Smoke Grenade
Grenades never think.
|
| All times are GMT -4. The time now is 07:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.