so i tried this one but happends nothing
where am i wrong?
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <engine>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd( "amx_makewater", "ClientCommand_Createwater" )
}
public plugin_precache()
{
new breakable = create_entity( "func_water" );
DispatchSpawn( breakable);
remove_entity( breakable);
}
public ClientCommand_Createwater( const Player, const Level, const Cid )
{
if ( !cmd_access( Player, Level, Cid, 1 ) )
{
return PLUGIN_HANDLED;
}
new Float:Origin[3];
new Entity;
pev( Player, pev_origin, Origin );
if ( ( Entity = create_entity( "func_water" ) ) )
{
set_pev( Entity, pev_classname, "func_water" )
engfunc( EngFunc_SetSize , Entity, Float:{ -1.0, -1.0, -1.0 }, Float:{ 1.0, 1.0, 1.0 } )
engfunc( EngFunc_SetOrigin, Entity, Origin )
set_pev( Entity, pev_effects, 1) /* * 0 = Normal
* 1 = Slow Pulse
* 2 = Fast Pulse
* 3 = Slow Wide Pulse
* 4 = Fast Wide Pulse
* 5 = Slow Fade Away
* 6 = Fast Fade Away
* 7 = Slow Become Solid
* 8 = Fast Become Solid
* 9 = Slow Strobe
* 10 = Fast Strobe
* 11 = Faster Strobe
* 12 = Slow Flicker
* 13 = Fast Flicker
* 14 = Constant Glow
* 15 = Distort
* 16 = Hologram (Distort and Fade)*/
set_pev(Entity,pev_rendermode,0) /* * 0 = Normal
* 1 = Color
* 2 = Texture
* 3 = Glow
* 4 = Solid
* 5 = Additive*/
set_pev(Entity,pev_pitch_speed,0.2) //Pitch Yaw Roll (angles) - Sets the pitch (up / down), yaw (left / right) and roll (bank) respectively. The compass in WorldCraft / Hammer corresponds to Yaw. The settings are not always (or not all) used.
entity_set_float(Entity,EV_FL_animtime,2.0)
entity_set_float(Entity,EV_FL_framerate,1.0)
entity_set_int(Entity,EV_INT_sequence,0)
set_pev( Entity, pev_solid, SOLID_BBOX )
set_pev( Entity, pev_movetype, MOVETYPE_NONE)
set_pev( Entity, pev_owner, Player )
}
return PLUGIN_HANDLED_MAIN;
}
no error, no crashes...nothing
__________________