AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Anim not play (https://forums.alliedmods.net/showthread.php?t=185371)

Randomize 05-16-2012 11:27

Anim not play
 
PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <cstrike>
#include <engine>
#include <fakemeta>


#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init()
{
    
register_plugin("Anim","1.0","SubFive")
    
register_think("PreThink""entity_set_int")
}
public 
client_PreThink(id)
{
    
entity_set_int(id,EV_INT_button,IN_RUN);
}
public 
anim(id)
{
    if(
user_has_weapon(idCSW_MP5NAVY))
    {
        
engclient_cmd(id"weapon_mp5")
        
set_animation(id7)
    }
}
public 
set_animationidseq 
{
    
entity_set_int(idEV_INT_weaponanimseq);
    
message_begin(MSG_ONESVC_WEAPONANIM, {0,0,0}, id);
    
write_byte(seq);
    
write_byte(entity_get_int(idEV_INT_body));
    
message_end();


Why the animation doesn't play?


All times are GMT -4. The time now is 00:22.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.