Raised This Month: $51 Target: $400
 12% 

invalid player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GhostMan
Senior Member
Join Date: Jun 2012
Old 08-16-2013 , 08:41   invalid player
Reply With Quote #1

PHP Code:
public msgScreenFade(iMsgIdiMsgDestid)
{
    if(
get_msg_arg_int(4) == 255 && get_msg_arg_int(5) == 255 && get_msg_arg_int(6) == 255)
    {
        if(
cs_get_user_team(id) == CS_TEAM_T && get_pcvar_num(g_pNoFlash
            || 
cs_get_user_team(id) == CS_TEAM_CT && g_iTimer 0)
        {
            return 
PLUGIN_HANDLED;
        }
    }
    
    return 
PLUGIN_CONTINUE;

Quote:
L 08/12/2013 - 11:27:24: [CSTRIKE] Invalid player 6
L 08/12/2013 - 11:27:24: [AMXX] Displaying debug trace (plugin "hns.amxx")
L 08/12/2013 - 11:27:24: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 08/12/2013 - 11:27:24: [AMXX] [0] hns.sma::msgScreenFade (line 447)
That is Jon's plugin, but he is not really supports it anymore. http://forums.alliedmods.net/showthread.php?t=73244
GhostMan is offline
Stereo
Veteran Member
Join Date: Dec 2010
Old 08-16-2013 , 10:33   Re: invalid player
Reply With Quote #2

Check is_user_connected before cs_get_user_team
Stereo is offline
DWIGHTpN
Senior Member
Join Date: Jan 2013
Location: Romania.
Old 08-17-2013 , 11:08   Re: invalid player
Reply With Quote #3

PHP Code:
public msgScreenFade(iMsgIdiMsgDestid

    if(
get_msg_arg_int(4) == 255 && get_msg_arg_int(5) == 255 && get_msg_arg_int(6) == 255
    {
        if( 
is_user_connected(id) ) {
               new 
CsTeams:iTeam cs_get_user_team(id);
               if(
iTeam == CS_TEAM_T && get_pcvar_num(g_pNoFlash)  
               || 
iTeam == CS_TEAM_CT && g_iTimer 0
              { 
                  return 
PLUGIN_HANDLED
               }
         }
     } 
     
    return 
PLUGIN_CONTINUE

DWIGHTpN 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 11:58.


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