Raised This Month: $ Target: $400
 0% 

Need help with scrore plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
[X]-RayCat
Senior Member
Join Date: Sep 2006
Old 05-30-2007 , 06:17   Re: Need help with scrore plugin
Reply With Quote #17

Quote:
Originally Posted by v3x View Post
Correct.

If you wanted to decrease/increase the value by ten:
PHP Code:
team_wins[0] += 10
team_wins
[0] -= 10 
Quote:
Originally Posted by Deviance View Post
I wrote this up pretty quick
Code:
#include <amxmodx>
#include <amxmisc>
 
#define Plugin "Round Event"
#define Version "1.0"
#define Author "Deviance/Doombringer"
 
#define DEFINED_ROUNDS 14 //Rounds til' something happens
 
new num_rounds
public plugin_init()
{
    register_plugin(Plugin, Version, Author)
 
    register_logevent("round_end", 2, "1=Round_End")
    register_event("TextMsg", "reset_rounds", "a", "2=#Game_will_restart_in", "2&#Game_C")
}
 
public round_end()
{
    num_rounds++
 
    if(num_rounds == DEFINED_ROUNDS)
    {
        // Do stuff
    }
}
 
public reset_rounds()
{
    num_rounds = 0
}
@v3x: Happy your back
Heh thank you both.
[X]-RayCat 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 23:52.


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