Raised This Month: $ Target: $400
 0% 

Where is wrong? help me ! thanks!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-05-2007 , 22:10   Re: Where is wrong? help me ! thanks!
Reply With Quote #4

Try this. If I understand you want to display player's frags. So, using get_user_frags() should be enough.

Code:
#include <amxmodx> public plugin_init() {     register_plugin( "Show kills", "1.0", "Amxx Community" );     register_event( "SendAudio", "EndRoundShow", "a", "2=%!MRAD_terwin", "2=%!MRAD_ctwin", "2=%!MRAD_rounddraw" ); } public EndRoundShow() {     static iPlayers[32], sUser_name[32], iNum, iPid;     get_players( iPlayers, iNum );     for( new i; i < iNum; i++ )     {         iPid = iPlayers[i];         get_user_name( iPid, sUser_name, 31 );         client_print( iPid, print_chat, "[%s] kills [%d]", sUser_name, get_user_frags( iPid ) );     } }
__________________

Last edited by Arkshine; 12-05-2007 at 22:13.
Arkshine 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 11:02.


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