Raised This Month: $ Target: $400
 0% 

Change player models w/o cs_set_user_model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-05-2007 , 14:27   Re: Change player models w/o cs_set_user_model
Reply With Quote #1

maybe try calling that code at the begining of every round. the code below is vens tut on getting player spawn. in code tuts and w/e the other word is
try it it might work.

Code:
#define MAX_PLAYERS 32
new bool:g_restart_attempt[MAX_PLAYERS + 1]
 
public plugin_init() {
register_event("ResetHUD", "event_hud_reset", "be")
register_clcmd("fullupdate", "clcmd_fullupdate") 
register_event("TextMsg", "restart_attempt", "a", "2=#Game_will_restart_in")
}
 
public clcmd_fullupdate() {
   return PLUGIN_HANDLED_MAIN
}
 
public restart_attempt() {
   new players[32], num
   get_players(players, num, "a")
   for (new i; i < num; ++i)
g_restart_attempt[players[i]] = true
}
 
public event_hud_reset(id) {
   if (g_restart_attempt[id]) {
g_restart_attempt[id] = false
return
   }
player_spawn(id)
}
 
// this function is called on player spawn
public player_spawn(id) {
// code for player model goes here
}  

Last edited by Doc-Holiday; 08-05-2007 at 14:31.
Doc-Holiday 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 20:53.


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