Raised This Month: $ Target: $400
 0% 

eror logs .


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 11-22-2011 , 08:07   Re: eror logs .
Reply With Quote #7

Might as well use cs_get_user_team (since it's more reliable than get_user_team) when you're using other cstrike natives.

Code:
#include <amxmodx> #include <hamsandwich> #include <cstrike> public plugin_init() {     register_plugin("Team Models", "1.0", "?")         RegisterHam(Ham_Spawn, "player", "player_spawn", 1)         } public plugin_precache() {             precache_model("models/player/CTplayer/CTplayer.mdl") } public player_spawn(id) {     if(is_user_alive(id))     {             if(cs_get_user_team(id) == CS_TEAM_CT)         {             cs_set_user_model(id, "CTplayer")         }         else         {             cs_reset_user_model(id)         }         } }
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath 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 08:30.


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