Raised This Month: $ Target: $400
 0% 

[SOLVED] user_kill Problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 05-12-2011 , 15:17   [SOLVED] user_kill Problem
Reply With Quote #1

Error:
Code:
New message started when msg '83' has not been sent yet
Code:
PHP Code:
#include <amxmodx>
#include <cstrike>

new g_iMsgSayText

public plugin_init() 
{
    
g_iMsgSayText get_user_msgid"SayText" )
    
    
register_messageget_user_msgid"TextMsg" ), "Message_HostageText" )
}

public 
Message_HostageTextmsg_idmsg_destid )
{
    static 
szChannel64 ]
    
get_msg_arg_string2szChannelcharsmaxszChannel ) )
    
    if( 
equalszChannel"#Hostages_Not_Rescued" ) )
    {
        
SlayTeamCS_TEAM_CT"Slay!!!" )
        
        return 
PLUGIN_HANDLED
    
}
    
    return 
PLUGIN_CONTINUE
}

public 
SlayTeamCsTeams:iTeam , const szMessage[] )
{
    new 
iPlayers[32], iNumidi
    get_players
(iPlayersiNum"a")
    
    for( 
0iNumi++ )
    {
        
id iPlayers]
        if( 
cs_get_user_team(id) == iTeam )
        {
            
user_kill(id1)
            
            
ColorChat(idszMessage)
        }
    }
}

ColorChatid, const fmt[ ], any:... )
{        
    static 
szMsg192 ], MSG_TARGET
    
    szMsg
] = 0x04
    
    vformat
szMsg], charsmaxszMsg ), fmt)
    
    
MSG_TARGET id MSG_ONE_UNRELIABLE MSG_ALL
    
    message_begin
MSG_TARGETg_iMsgSayText, .player id )
    {
        
write_byteid id )
        
write_stringszMsg )
    }
    
message_end()

Tried to check If player connected and doesn't work! What is the problem ?

Tested on cs_assault ; Windows.

Last edited by dFF; 05-13-2011 at 06:10. Reason: Problem solved.
dFF 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 04:29.


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