Raised This Month: $ Target: $400
 0% 

switch player to spec


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
whosyourdaddy
Senior Member
Join Date: Apr 2008
Old 12-30-2008 , 23:55   switch player to spec
Reply With Quote #1

im using this code to switch player to spec but for some reason its glitching. it switches the player to spec for 5 seconds and then switches them back to their old team. when u tab it shows ur on ur old team but ur really in spec and wont spawn next round or round after that. any1 know why the score board is glitching heres the code

Code:
stock fm_set_user_team(id, CsTeams:team)
{
   set_pdata_int(id, OFFSET_TEAM, _:team)
 
   dllfunc(DLLFunc_ClientUserInfoChanged, id)
 
   static teaminfo[12], iMsgid_TeamInfo
 
   switch(team)
   {
        case CS_TEAM_UNASSIGNED: 
            teaminfo="UNASSIGNED"
       case CS_TEAM_T: 
           teaminfo="TERRORIST"
       case CS_TEAM_CT: 
           teaminfo="CT"
       case CS_TEAM_SPECTATOR: 
           teaminfo="SPECTATOR"
    }
 
   if(!iMsgid_TeamInfo)
       iMsgid_TeamInfo = get_user_msgid("TeamInfo")
 
 
   message_begin(MSG_ALL, iMsgid_TeamInfo)
   write_byte(id)
   write_string(teaminfo)
   message_end()
}
whosyourdaddy is offline
 


Thread Tools
Display Modes

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 09:19.


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