Raised This Month: $ Target: $400
 0% 

Bug in animation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DavidJr
Senior Member
Join Date: Apr 2012
Old 04-28-2012 , 08:15   Bug in animation
Reply With Quote #1

Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <engine>
#include <fakemeta_util>
#include <cstrike>
#include <hamsandwich>
#include <fun>

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


public plugin_init()
{
    register_plugin("Run Test","1.0","DavidJr");
}
public client_PreThink(id)
{
    entity_set_int(id,EV_INT_button,IN_RUN);
    entity_set_int(id, EV_INT_weaponanim, 7 )
}
public set_animation(id, anim) 
{
    entity_set_int(id, EV_INT_weaponanim, anim);
    message_begin(MSG_ONE, SVC_WEAPONANIM, {0,0,0}, id);
    write_byte(7);
    write_byte(entity_get_int(id, EV_INT_body));
    message_end();
}
I've made this plugin.. but when i test in game, the animation play when idle.. also when i shoot, the ammo doesn't decrease, also is there any method to use CSW_MP5 or weapons_mp5 something else like that?

Last edited by DavidJr; 04-28-2012 at 08:17.
DavidJr is offline
Old 04-28-2012, 10:02
DavidJr
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Old 04-28-2012, 11:32
rak
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Old 04-28-2012, 11:42
bazhenov93
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Old 04-28-2012, 18:56
DavidJr
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Old 04-28-2012, 20:03
DavidJr
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:55.


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