Raised This Month: $ Target: $400
 0% 

TFC Flag Capture


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FormulaZero
BANNED
Join Date: Feb 2007
Location: Sector 7G
Old 02-18-2007 , 17:35   TFC Flag Capture
Reply With Quote #1

Hello, I've been working on a plugin that does this: When a user from a team captures the flag there team gets +20 health and +3 speed. When the user picks the flag up he gets +5 health, I havn't gotten far yet but I'm stuck and can't call the flag capture function does anybody mind helping? I'm trying to make it so when a player captures the flag there team gets +20 health and +3 speed, just get me that far please, I think I can play out the rest:

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <tfcx>
#include <fun>

#define PLUGIN "TFC Flag Bonus"
#define VERSION "1.0"
#define AUTHOR "FormulaZero"

new cbonus

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("TeamScore","capflag","be")
    
    new 
Cvar[] = "amx_capbonus"
    
register_cvar(Cvar"1")
    
cbonus get_cvar_pointer(Cvar)
}

public 
capflag(id)
{
    if(!
is_user_alive(id))
        return
    if(
tfc_get_user_goalitem(1,1)(id) < 
FormulaZero is offline
Reply


Thread Tools
Display Modes

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 07:56.


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