Need help generating smoke
I need some help. I want to generate some smoke from all alive players
I made: PHP Code:
|
Re: Need help generating smoke
precache_model should be in plugin_precache
id isn't passed to the logevent hook, so you should use for example get_players with "a" flag and loop through all indexes, you can find examples in amxmodx/scripting in some of the sma files It would be better to use MSG_PVS instead of MSG_ALL for visual effects like this one, and pass the origin of the message in message_begin should be write_coord(origin[0]), write_coord(origin[1]) and write_coord(origin[2]) |
Re: Need help generating smoke
Thanks VEN, I'll try it tommorow.
|
Re: Need help generating smoke
So it should be:
Code:
#include <amxmodx> Code:
#include <amxmodx> |
Re: Need help generating smoke
dutchmeat: reread what i said before.
Also your methods very inefficient. |
Re: Need help generating smoke
Edited,
and what do you mean by inefficient? |
Re: Need help generating smoke
This article will tell you in details http://wiki.amxmodx.org/index.php/Optimizing_Plugins
|
Re: Need help generating smoke
Tommorow when I'll get home I'll try what VEN suggested to me. If I'll have problems I'll post a reply.
|
| All times are GMT -4. The time now is 06:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.