Raised This Month: $ Target: $400
 0% 

New round events + some other things


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-13-2007 , 13:14   Re: New round events + some other things
Reply With Quote #2

It's a global event so you have to use get_players() + for().

Also event has to be registered in plugin_init().

Code:
    #include <amxmodx>     #include <cstrike>     public plugin_init()     {         register_plugin( "Plugin", "1.0", "Amxx Community" );                 register_logevent( "eRound_start", 2, "1=Round_Start" );     }         public eRound_start()     {         new iPlayers[32], iNum, iPid;         get_players( iPlayers, iNum, "a" );                 for( new i; i < iNum; i++ )         {             iPid = iPlayers[i];                         client_print( iPid, print_chat, "[AMXX] NOWA RUNDA---------------------<<<" );             cs_set_user_money( iPid, cs_get_user_money( iPid + 6666 ) );             client_print( iPid, print_chat, "[AMXX] CSN-SQL: Dodano 6666$" );         }         }
__________________
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 01:23.


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