Quote:
Originally Posted by ƒa†es™
How do i make a plugin that can plant a trap when a person step into my trap he will fade to black + can't move for some second ?
After seeing your codes i still don't understand. 
|
What you dont understand?
About the Get angles & origin utilitie... you dont have to understand the code.. use the plugin to get the origin of a position in a map (/getmenu) and then you can set the origin to the trap, but to do the trap you have to create an entity (i think), and if you dont understand this code you cant do a "trap" cuz that is more advanced... maybe try to see the code in blockmaker plugins.
About screenfade, well.. here an example:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Fade Example"
#define AUTHOR "Alucard"
#define VERSION "1.0"
new g_fade
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
g_fade = get_user_msgid("ScreenFade")
register_clcmd("say /fademe", "FadeHandler")
}
public FadeHandler(id)
{
Fade(id,255,0,0,20)
}
stock Fade(id,red,green,blue,alpha)
{
message_begin(MSG_ONE,g_fade,{0,0,0},id)
write_short(1<<10)
write_short(1<<10)
write_short(1<<12)
write_byte(red)
write_byte(green)
write_byte(blue)
write_byte(alpha)
message_end()
}
I know this plugin work but maybe should be:
PHP Code:
public FadeHandler(id)
{
message_begin(MSG_ONE,g_fade,{0,0,0},id)
write_short(1<<10)
write_short(1<<10)
write_short(1<<12)
write_byte(255) //red
write_byte(0) //green
write_byte(0) //blue
write_byte(20) //alpha
message_end()
}
But i am not sure if using the stock is better or not.
__________________