Raised This Month: $ Target: $400
 0% 

Spread Values


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Wasc
Junior Member
Join Date: Apr 2011
Old 10-25-2011 , 16:25   Re: Spread Values
Reply With Quote #4

If I understood you correctly, variables which assigned in globally will changes from event to event globally too?
Code:
#include <amxmodx> 
#include <amxmisc>

new Float:BombTimer = get_gametime() 
new Float:cooldown = BombTimer + 29.0 
public plugin_init() {
     register_plugin("unnamed","1.0","unnamed")
     register_logevent("BombPlantComplete",3,"2=Planted_The_Bomb")
     register_logevent("BombDefused",3,"2=Defused_The_Bomb")
}  
public BombPlantComplete(){
     BombTimer = get_gametime()
     cooldown = BombTimer + 29.0 
}  
public BombDefused(){
         if(BombTimer >= cooldown)
         client_print(0,print_chat,"Message") 
}

Last edited by Wasc; 10-25-2011 at 16:28.
Wasc 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 14:22.


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