Raised This Month: $ Target: $400
 0% 

Use once every 7 rounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
OnePL
BANNED
Join Date: May 2012
Location: GB
Old 12-26-2013 , 08:34   Use once every 7 rounds
Reply With Quote #1

Hello

How to do to be able to use the variable X every 7 rounds?

PHP Code:
#include <amxmodx>

new xrounds;

public 
plugin_init() {
    
register_clcmd("say /test""use");

    
register_logevent("RoundEnd"2"1=Round_End");
    
register_event("TextMsg""RestartGame""a""2&#Game_w");
    
register_event("TextMsg""RestartContin""a""2&#Game_C");
}

public 
RestartGame() rounds 0;
public 
RestartContin() rounds = -1;
public 
RoundEnd() rounds++;

public use(
id) {
    if(
?) {
        
client_print(id3"Can only be used once every 7 rounds!");
        return 
1;
    }
    
// code
    
return 0;


Last edited by OnePL; 12-26-2013 at 08:38.
OnePL is offline
Send a message via ICQ to OnePL Send a message via AIM to OnePL Send a message via Yahoo to OnePL Send a message via Skype™ to OnePL
 



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