AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   exec only once a function in a round? (https://forums.alliedmods.net/showthread.php?t=28066)

wouter 05-06-2006 15:19

exec only once a function in a round?
 
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

p3tsin 05-06-2006 18:47

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 :?

wouter 05-06-2006 18:53

thx


All times are GMT -4. The time now is 05:13.

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