Raised This Month: $ Target: $400
 0% 

All models do not changes


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Fighterzaka
Member
Join Date: Mar 2006
Old 10-18-2006 , 08:06   Re: All models do not changes
Reply With Quote #5

I know can u do this for me Make every 30 Secounds it load the plugin or something like that PS. choose one of this
Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>


public plugin_init() {
        register_plugin("Simpsons EDIT", "1.1.1", "Fighter")
        register_event("ResetHUD", "resetModel", "b")
        return PLUGIN_CONTINUE
}

public plugin_precache() {
        precache_model("models/player/ctfun/ctfun.mdl")
        precache_model("models/player/tfun/tfun.mdl")

        return PLUGIN_CONTINUE
}

public resetModel(id, level, cid) {

                new CsTeams:userTeam = cs_get_user_team(id)
            if(is_dedicated_server(id)) {

                if (userTeam == CS_TEAM_T) {
                        cs_set_user_model(id, "tfun")
                }
                else if(userTeam == CS_TEAM_CT) {
                        cs_set_user_model(id, "ctfun")
                }
                else {
                        cs_reset_user_model(id)
                }
        }

        return PLUGIN_CONTINUE
}
Next

Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>


public plugin_init() {
        register_plugin("Simpsons EDIT", "1.1.1", "Fighter")
        register_event("ResetHUD", "resetModel", "b")
        return PLUGIN_CONTINUE
}

public plugin_precache() {
        precache_model("models/player/ctfun/ctfun.mdl")
        precache_model("models/player/tfun/tfun.mdl")

        return PLUGIN_CONTINUE
}

public resetModel(id, level, cid) {

                new CsTeams:userTeam = cs_get_user_team(id)
            if(is_user_alive(id)) {

                if (userTeam == CS_TEAM_T) {
                        cs_set_user_model(id, "tfun")
                }
                else if(userTeam == CS_TEAM_CT) {
                        cs_set_user_model(id, "ctfun")
                }
                else {
                        cs_reset_user_model(id)
                }
        }

        return PLUGIN_CONTINUE
}
Fighterzaka is offline
Send a message via MSN to Fighterzaka
 



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 04:51.


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