Raised This Month: $ Target: $400
 0% 

hide n seek model bug


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
felle22
Junior Member
Join Date: Jun 2007
Old 01-26-2008 , 05:54   hide n seek model bug
Reply With Quote #1

Hi

i have a server hns, But sometimes if a t joins ct he still looks like a t and he dose that until he leave server is it any plugins that checks model and changes so he will look like a ct instead of t while hes ct
felle22 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-26-2008 , 21:14   Re: hide n seek model bug
Reply With Quote #2

this should work
Code:
#include <amxmodx> #include <cstrike> new bool:g_RestartAttempt[32]; public plugin_init() {     register_event("ResetHUD", "event_ResetHUD", "be");     register_event("TextMsg", "event_TextMsg", "a", "2=#Game_w");     register_clcmd("fullupdate", "clcmd_Fullupdate"); } public event_ResetHUD(id) {     if(g_RestartAttempt[id-1])     {         g_RestartAttempt[id-1] = false;         return;     }     event_PlayerSpawn(id); } public event_PlayerSpawn(id)     set_task(0.3, "task_CheckModel", id); public task_CheckModel(id) {     new model[32];     cs_get_user_model(id, model, 31);         new CsTeams:team = cs_get_user_team(id);     if(team == CS_TEAM_T &&     (equali(model, "gign")     || equali(model, "gsg9")     || equali(model, "sas")     || equali(model, "urban"))     || team == CS_TEAM_CT &&     (equali(model, "arctic")     || equali(model, "guerilla")     || equali(model, "terror")     || equali(model, "leet")))         cs_set_user_model(id, (team == CS_TEAM_T) ? "leet" : "gign"); } public event_TextMsg() {     new players[32], pnum;     get_players(players, pnum, "a");     for(new i=0; i < pnum; i++)         g_RestartAttempt[players[i]-1] = true; } public clcmd_Fullupdate(id)     return PLUGIN_HANDLED_MAIN;
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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:32.


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