Raised This Month: $ Target: $400
 0% 

Roundstart Money


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jordan
Veteran Member
Join Date: Aug 2005
Old 03-21-2006 , 15:28  
Reply With Quote #1

I don't think that's a valid event? If you want before freezetime, you use HLTV, and if you want after freezetime, you want new_round.

Code:
register_logevent("new_round", 2 , "1=Round_Start");    /* later in the code:*/ public new_round() // doesn't take id as a function. {     new players[32], num, i;     get_players(players,num);         for(i=0;i<num;i++)     givemoney(players[i]); } public givemoney(id) // now you can use id {     new money = cs_get_user_money(id)     new cVar = get_cvar_num("round_money")     if(money < cVar)     {             cs_set_user_money(id, cVar, 1)             return PLUGIN_CONTINUE     }     return PLUGIN_CONTINUE }

I think this should work.
Jordan 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 19:02.


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