Raised This Month: $ Target: $400
 0% 

exec only once a function in a round?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wouter
Senior Member
Join Date: Feb 2005
Location: Belgium
Old 05-06-2006 , 15:19   exec only once a function in a round?
Reply With Quote #1

how can i make it so that a function (activaded by say /blabla) can only be executes once per round or once per 2 minutes?

but if player1 sais /blabla , then player2 must still be able to say /blabla in that round/time

thx
wouter is offline
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 05-06-2006 , 18:47  
Reply With Quote #2

Code:
new bool:allow[33] public plugin_init() {     register_logevent("new_round", 2, "0=World triggered", "1=Round_Start")     register_clcmd("say /blabla", "blaa") } public new_round() {     for(new i = 0; i < 33; i++) allow[i] = true } public blaa(id) {     if(!allow[id]) return PLUGIN_HANDLED     allow[id] = false     //.. }

u could also use ResetHUD but i dont like it coz of fullupdate
__________________
plop
p3tsin is offline
wouter
Senior Member
Join Date: Feb 2005
Location: Belgium
Old 05-06-2006 , 18:53  
Reply With Quote #3

thx
wouter 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 05:13.


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