AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Bug in animation (https://forums.alliedmods.net/showthread.php?t=183905)

DavidJr 04-28-2012 08:15

Bug in animation
 
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?


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

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