Raised This Month: $ Target: $400
 0% 

Help with using command once per round


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 03-03-2006 , 23:00  
Reply With Quote #2

use
Code:
//...global variable (add it after includes) new PlayerUses[33] //...in plugin_init()     register_logevent( "Event_RoundStart", 2, "0=World triggered", "1=Round_Start" ) //...or depending on when you want it     register_logevent( "Event_RoundEnd",   2, "0=World triggered", "1=Round_End" ) //....make a function Event_RoundStart or Even_RoundEnd depending on when you want it.     for( new i = 0 ; i <=32 ; i++)          PlayerUses[i] = 0; //reset counter //.....add this where the command is done     if(PlayerUses[id] >= 1)         return PLUGIN_HANDLED     PlayerUses[id]++;
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
 



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 20:24.


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