Raised This Month: $ Target: $400
 0% 

Problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MAMOHT
New Member
Join Date: Jul 2011
Old 07-20-2011 , 10:12   Problem
Reply With Quote #1

Hello,
I want to create a plugin that would change the model to any other terrorist model, at a certain variable. I tried to create, but nothing came of it. What did I do wrong in the plugin?
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>

#define PLUGIN "test"
#define VERSION "1.0 beta"
#define AUTHOR "Mihail"




public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_cvar("dr_mode","1")
    return PLUGIN_CONTINUE
}
public plugin_precache ()
{
    precache_model("models/player/gign/gign.mdl")
    return PLUGIN_CONTINUE
}

///террорист становится зомби
public ter_infect(id) {
    if (get_user_team(id) == 1 && get_cvar_num("dr_mode") == 2)
    {
        cs_set_user_model(id, "gign")
        set_user_health(id, 2000)
        return PLUGIN_CONTINUE
    }
    return PLUGIN_CONTINUE
}
P.S. Translate by google.
MAMOHT is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 07-20-2011 , 16:39   Re: Problem
Reply With Quote #2

sorry but, do you know this: Players Models 1.3.1 ( 13 nov 2010 ) ?
__________________
ANTICHRISTUS is offline
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 00:53.


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