Raised This Month: $ Target: $400
 0% 

Don't set model index


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bogdyuttzu
Senior Member
Join Date: Dec 2009
Location: Romania
Old 04-24-2011 , 11:13   Don't set model index
Reply With Quote #1

I have this stock from zombie plague


PHP Code:
// Set the precached model index (updates hitboxes server side)
stock fm_cs_set_user_model_index(idvalue)
{
    
set_pdata_int(idOFFSET_MODELINDEXvalueOFFSET_LINUX)

But don't work and I try pev_modelindex but no effect

So?
bogdyuttzu is offline
Send a message via Yahoo to bogdyuttzu
pRoxxxDD
Junior Member
Join Date: Feb 2011
Location: Ukraine
Old 04-25-2011 , 16:28   Re: Don't set model index
Reply With Quote #2

Its work,

Test plugin from my tutorial.
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
#include <fakemeta>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Администратор"

#define OFFSET_MODELINDEX 491

new indexdefaultindex
public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say poison""model")
    
RegisterHam(Ham_Spawn"player""spawn_p"1)
}

public 
plugin_precache()
{
    
index precache_model("models/player/uac_zombie_poison/uac_zombie_poison.mdl")
    
defaultindex precache_model("models/player.mdl")
    
}


public 
model(id)
{
    
cs_set_user_model(id"uac_zombie_poison")
    
fm_set_user_model_index(idindex)

    
}

public 
spawn_p(id)
{
    
cs_reset_user_model(id)
    
fm_set_user_model_index(iddefaultindex)
    
}

stock fm_set_user_model_index(idvalue)
{
    
set_pdata_int(idOFFSET_MODELINDEXvalue)

__________________
pRoxxxDD is offline
Reply


Thread Tools
Display Modes

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 20:09.


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