Raised This Month: $ Target: $400
 0% 

Admin team skins


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
m0rfin
New Member
Join Date: Sep 2005
Old 04-16-2006 , 23:08   Admin team skins
Reply With Quote #1

What do i write to make that
T gets 1 skin
and CT gets another skin

This is my plugin:
Code:
#include <amxmodx> 
#include <cstrike>

public plugin_init() 
{ 
  register_plugin("m0rfin's Custom Models" , "0.1" , "m0rfin"); 
  register_event("ResetHUD" , "event_ResetHUD" , "f"); 
}

public plugin_precache() 
{ 
  // notice the path structure 
  precache_model("player/gign/slewme.mdl"); 
}

public event_ResetHUD(id) 
  set_task(1.0 , "set_model" , id);

public set_model(id) 
{ 
  if(is_user_alive(id)) // check if the player is alive 
  { 
    // get the player's auth id 
    new authid[33]; 
    get_user_authid(id , authid , 32); 

    // check the player's authid for a match 
    if(equal(authid , "STEAM_0:1:3611893")) 
    { 
      // and finally set the model 
      cs_set_user_model(id , "slewme"); 
    } 
  } 
}
m0rfin is offline
 



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 05:01.


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