Raised This Month: $ Target: $400
 0% 

script help.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 02-03-2005 , 07:59   script help.
Reply With Quote #1

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #define TEAM_T 1 #define TEAM_CT 2 public round_start(id) {    switch(get_user_team(id)) {       case TEAM_T: if (get_cvar_num("c4_t")) give_item(id,"weapon_c4")       case TEAM_CT: if (get_cvar_num("c4_ct")) give_item(id,"weapon_c4") }    return PLUGIN_CONTINUE }   public plugin_init() { #define PLUGIN_NAME "C4 Madness" #define PLUGIN_VERSION "0.1" #define PLUGIN_AUTHOR "n0obie4life"    register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR) }    register_cvar("c4_t","1")    register_cvar("c4_ct","0")    register_event("ResetHUD", "round_start", "b") }

this is my script. i'm trying to port it and modify it. but now i'm having a problem.
Quote:
C:\Valve\Steam\SteamApps\n0obie4life\counter-strike\cstrike\addons\amxmodx\sc
ripting\c4_modes.sma(31) : error 021: symbol already defined: "register_cvar"
that is the error i'm getting. help please?
n0obie4life 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 19:16.


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