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 , 15:43   Re: New round events + some other things
Reply With Quote #7

You don't understand.

'Round start' event is a global event. It happens after the freeze time.

You have to retrieve the players list using get_players(). See my snippet above.

But if you want to set money before the players start to buy weapons, you have to use 'new round' or 'reset hud' event.

Code:
    #include <amxmodx>     #include <cstrike>     public plugin_init()     {         register_plugin( "Plugin", "1.0", "Amxx Community" );                 register_event( "HLTV", "eNew_round", "a", "1=0", "2=0" );     }         public eNew_round()     {         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$" );         }     }

New Round is happen at the Freeze Time start.

EDIT: @connor : Damn you. ;)
__________________

Last edited by Arkshine; 10-13-2007 at 15:46.
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