Raised This Month: $ Target: $400
 0% 

Delay Skin Replacement


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 10-03-2009 , 17:25   Delay Skin Replacement
Reply With Quote #1

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

public plugin_init()
{
        register_plugin("Cookie Monster Battle", "1.0", "Author")
        register_event("ResetHUD", "resetModel", "b")
}

public plugin_precache() 
{
        precache_model("models/player/cookie/cookie.mdl")
}

public resetModel(id)
{
    if (cs_get_user_team(id) == CS_TEAM_T)
        cs_set_user_model(id, "cookie")
    else
        cs_reset_user_model(id)
}
I want to delay the skin replacement by two seconds for the terrorist team. Any help?
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
 



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 22:36.


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