Raised This Month: $ Target: $400
 0% 

How to block choosing of teams


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mateo10
Veteran Member
Join Date: Jan 2006
Old 12-15-2006 , 16:37   How to block choosing of teams
Reply With Quote #1

How do I block the choosing of teams, ie. I want to make all players spawn as terrorists when they connect and they cant choose teams after that.
mateo10 is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 12-15-2006 , 18:42   Re: How to block choosing of teams
Reply With Quote #2

http://forums.alliedmods.net/showthr...highlight=team

Hm... I guess if someone is ignorant enough to pay you for a userbar, they should have to pay to have one.

Last edited by stupok; 12-15-2006 at 18:45.
stupok is offline
mateo10
Veteran Member
Join Date: Jan 2006
Old 12-17-2006 , 05:11   Re: How to block choosing of teams
Reply With Quote #3

Doesn't work at all when I implement the code in my plugin...
mateo10 is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 12-17-2006 , 08:38   Re: How to block choosing of teams
Reply With Quote #4

Then post it...
[ --<-@ ] Black Rose is offline
mateo10
Veteran Member
Join Date: Jan 2006
Old 12-17-2006 , 09:24   Re: How to block choosing of teams
Reply With Quote #5

This is the plugin:
Code:
#include <amxmodx> #include <cstrike> #include <engine> #include <fun> public plugin_init() {     register_plugin("Free For All Deathmatch", "0.1", "MaTTe")     register_cvar("ffadm_enable", "1")     register_event("DeathMsg", "EventDeathMsg", "a")     remove_bomb()     return PLUGIN_CONTINUE } public client_putinserver(id) {     cs_set_user_team(id, CS_TEAM_T) } public EventDeathMsg(id) {     new Attacker = read_data(1)     new Victim = read_data(2)         if(Attacker && is_user_connected(Attacker) && get_user_team(Attacker) == get_user_team(Victim)) {         set_user_frags(Attacker, get_user_frags(Attacker)+1)         cs_set_user_deaths(id, cs_get_user_deaths(id)-1)     }     spawn(Victim) } public remove_bomb() {     new ent = find_ent_by_model(ent, "grenade", "v_c4.mdl")     remove_entity(ent) }
How do i implement that blocking of teams?
mateo10 is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 12-17-2006 , 10:20   Re: How to block choosing of teams
Reply With Quote #6

? try it.
Code:
public team_select(id, key) {     engclient_cmd(id, "slot1")     return PLUGIN_HANDLED } public plugin_init() {     register_menucmd(register_menuid("Team_Select"),(1<<0)|(1<<1)|(1<<4)|(1<<5),"team_select")     register_menucmd(-2,(1<<0)|(1<<1)|(1<<4)|(1<<5),"team_select") }
[ --<-@ ] Black Rose is offline
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 06:55.


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