Raised This Month: $51 Target: $400
 12% 

Clan vs All


Post New Thread Reply   
 
Thread Tools Display Modes
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-21-2005 , 20:12  
Reply With Quote #11

it was but it still diddnt work.
__________________
bmann_420 is offline
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 08-21-2005 , 20:15  
Reply With Quote #12

Can I see the actual code your using? the .sma
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-21-2005 , 20:27  
Reply With Quote #13

Its nightscreems code up about 5 posts, where u got urs from
__________________
bmann_420 is offline
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 08-21-2005 , 20:31  
Reply With Quote #14

Oh okay, that's all of it?
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 08-21-2005 , 20:34  
Reply With Quote #15

Okay, correct me if I'm wrong, but doesn't this:
Code:
register_plugin( PLUGINNAME, VERSION, AUTHOR )

Need to be:

Code:
register_plugin( "Clan VS", "1.0", "Nightscream" )

I'll try changing the code to what I put see if it works, unless you already did?
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 08-21-2005 , 21:00  
Reply With Quote #16

Code:
register_concmd( "amx_clanvs", "clanvs", ADMIN_LEVEL_A, <CT, T> )
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 08-21-2005 , 21:01  
Reply With Quote #17

Oh okay, I think I got it, I can't test right now, but it compiles fine.

Code:
#include <amxmodx> #include <cstrike> #define PLUGINNAME    "Clan VS" #define VERSION        "1.0" #define AUTHOR        "Nightscream" public plugin_init() {     register_plugin( "Clan VS", "1.0", "Nightscream" )     register_concmd( "amx_clanvs", "clanvs", ADMIN_KICK, "<CT|T>" ) } public clanvs(id) {           new arg[32], name[32]     read_argv( 1, arg, 31 )     new arg2[32]     read_argv( 2, arg2, 31 )     new players[32],pnum     get_players(players,pnum)     for(new i; i < pnum; i++) {         get_user_name(players[i], name, 31 )         if( contain( name, arg ) ) {             if ( equal ( arg2, "CT" ) ) {                 cs_set_user_team( players[i], CS_TEAM_CT )             }             if (equal ( arg2, "T" ) ) {                 cs_set_user_team( players[i], CS_TEAM_T )             }         }else{             if( equal ( arg2, "CT" ) ) {                 cs_set_user_team( players[i], CS_TEAM_T )             }             if( equal ( arg2, "T" ) ) {                 cs_set_user_team( players[i], CS_TEAM_CT )             }         }     }           return PLUGIN_HANDLED }

Changed
Code:
register_concmd( "amx_clanvs", "clanvs", ADMIN_LEVEL_A, <CT, T> )

To:

Code:
register_concmd( "amx_clanvs", "clanvs", ADMIN_KICK, "<CT|T>" )
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 08-21-2005 , 21:12  
Reply With Quote #18

Nothing, I see it in the help, when I type amx_help, but yeah it says nothing.
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-21-2005 , 21:17  
Reply With Quote #19

exactly
__________________
bmann_420 is offline
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 08-21-2005 , 21:24  
Reply With Quote #20

We must be missing something in the bulk of the code. Too bad I don't knwo enough to see what it is.

I added "<tag>" right here

Code:
    register_concmd( "amx_clanvs", "clanvs", ADMIN_KICK, "<tag> <CT|T>" )
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
Reply



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 10:58.


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