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

Clan vs All


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-19-2005 , 22:02   Clan vs All
Reply With Quote #1

I searched for this and no luck. For one i use teamlocker by bardelote, or however u spell it, and second my dam transfer is not working for 1.50. I posted about that in suport. aannyyway, I was wondering about a plugin for a clan vs all.

amx_clanvs <tag> CT or T

then it switches everybody to teh teams specified. Im sorry if there is one out ther ealready but i have not found it. Or it just has not been ported yet. Thankx[/small]
__________________
bmann_420 is offline
kirby7wu
Member
Join Date: Jun 2005
Location: Кры
Old 08-20-2005 , 00:58   Re: Clan vs All
Reply With Quote #2

I could give this a shot.
__________________
Please do not give me any karma, I do not participate in that.
kirby7wu is offline
Send a message via AIM to kirby7wu
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-20-2005 , 01:05  
Reply With Quote #3

That would be dopeness. no cvars or nothing just a simple team switch with the Team the clan tag is on as Locked. u might be able to use this for some of that locking
Code:
#include <amxmodx> new blockjoining[6] public admin_lockt() { blockjoining[0] = PLUGIN_HANDLED return PLUGIN_HANDLED } public admin_unlockt() { blockjoining[0] = PLUGIN_CONTINUE return PLUGIN_HANDLED } public admin_lockct() { blockjoining[1] = PLUGIN_HANDLED return PLUGIN_HANDLED } public admin_unlockct() { blockjoining[1] = PLUGIN_CONTINUE return PLUGIN_HANDLED } public admin_lockauto() { blockjoining[4] = PLUGIN_HANDLED return PLUGIN_HANDLED } public admin_unlockauto() { blockjoining[4] = PLUGIN_CONTINUE return PLUGIN_HANDLED } public admin_lockspec() { blockjoining[5] = PLUGIN_HANDLED return PLUGIN_HANDLED } public admin_unlockspec() { blockjoining[5] = PLUGIN_CONTINUE return PLUGIN_HANDLED } public team_select(id, key) {         if ( blockjoining[key] == PLUGIN_HANDLED ){                 engclient_cmd(id,"chooseteam")                 return PLUGIN_HANDLED         }         return PLUGIN_CONTINUE } public join_team(id) {         new arg[2]         read_argv(1, arg, 1)         if ( blockjoining[str_to_num(arg)-1] == PLUGIN_HANDLED ){                 engclient_cmd(id,"chooseteam")                 return PLUGIN_HANDLED         }         return PLUGIN_CONTINUE } public plugin_init() {         register_plugin("Team Locker","0.1","bardelot")         register_menucmd(register_menuid("Team_Select",1), (1<<0)|(1<<1)|(1<<4)|(1<<5), "team_select")         register_clcmd("jointeam", "join_team")         register_concmd("amx_lockt","admin_lockt",ADMIN_SLAY,"locks T Team")         register_concmd("amx_unlockt","admin_unlockt",ADMIN_SLAY,"unlocks T Team")         register_concmd("amx_lockct","admin_lockct",ADMIN_SLAY,"locks CT Team")         register_concmd("amx_unlockct","admin_unlockct",ADMIN_SLAY,"unlocks CT Team")         register_concmd("amx_lockauto","admin_lockauto",ADMIN_SLAY,"locks Auto Team")         register_concmd("amx_unlockauto","admin_unlockauto",ADMIN_SLAY,"unlocks Auto Team")         register_concmd("amx_lockspec","admin_lockspec",ADMIN_SLAY,"locks Spec Team")         register_concmd("amx_unlockspec","admin_unlockspec",ADMIN_SLAY,"unlocks Spec Team")         blockjoining[0] = PLUGIN_CONTINUE         blockjoining[1] = PLUGIN_CONTINUE         blockjoining[5] = PLUGIN_CONTINUE         return PLUGIN_CONTINUE }

by bartelot. i dont want this to be stealing or anything just reference.
__________________
bmann_420 is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 08-20-2005 , 17:36  
Reply With Quote #4

try this i have no idea if this works
Code:
#include <amxmodx> #include <cstrike> #define PLUGINNAME  "Clan VS" #define VERSION  "1.0" #define AUTHOR    "Nightscream" public plugin_init() {     register_plugin( PLUGINNAME, VERSION, AUTHOR )     register_concmd( "amx_clanvs", "clanvs", ADMIN_LEVEL_A ) } 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 }
__________________
- Bye bye!
nightscreem is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-20-2005 , 19:34  
Reply With Quote #5

under amx_help the command looks like this
Code:
amx_clanvs amx_clanvs "Clan Tag" CT | T

and it does nothing, i type amx_clanvs=nothing. amx_clanvs amx_clanvs=nothing. amx_clanvs amx_clanvs CT or T=nothing. Although it is runing and the command is accessible, but hothing happens.
__________________
bmann_420 is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 08-20-2005 , 20:58  
Reply With Quote #6

updated removed
register_concmd( "amx_clanvs", "clanvs", ADMIN_LEVEL_A "amx_clanvs <clan tag> <T | CT> )
__________________
- Bye bye!
nightscreem is offline
Bman_420
New Member
Join Date: Jan 2005
Old 08-21-2005 , 00:48  
Reply With Quote #7

not working, nothing at all, nada
Bman_420 is offline
Send a message via AIM to Bman_420
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 08-21-2005 , 08:15  
Reply With Quote #8

i updated it again don't you get an error or something
__________________
- Bye bye!
nightscreem is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-21-2005 , 16:08  
Reply With Quote #9

lol, absolutely nothing. and when i just type amx_clanvs in consol, u know hwo its supposed to tell you what commands u have in that that one like, <Clan Tags> CT|T, it doesnt even say that. i dont see that in ur concmd tho, isnt it supposed to be there to register if i choose ct or t?
__________________
bmann_420 is offline
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 08-21-2005 , 20:06  
Reply With Quote #10

Quote:
Originally Posted by nightscreem
try this i have no idea if this works
Code:
#include <amxmodx> #include <cstrike> #define PLUGINNAME  "Clan VS" #define VERSION  "1.0" #define AUTHOR    "Nightscream" public plugin_init() {     register_plugin( PLUGINNAME, VERSION, AUTHOR )     register_concmd( "amx_clanvs", "clanvs", ADMIN_LEVEL_A ) }
I don't know <----complete noob with code
Yeah shouldn't it be more like this?

Code:
public plugin_init()  {     register_plugin( PLUGINNAME,VERSION,AUTHOR )     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
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 23:30.


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