[moved] KZ server, only CT team, not TS
Hi all :) i'm making kz server, its allmost done... the plugins are ready, stats too... The problem is, that the players can join TS and CT, so they shoot each other, not jump... Can someone tell, how and where, i can make, that the players can join only CT team? Pls help :)
Almost all kz maps only have CT spawn points, so it's impossible to spawn as T. There are a few maps that have T spawns. You can use humans_join_team "ct" to force players to CT, but they won't be able to join spectator, so you will need to get an amxmodx plugin to fix that.
#include
#include
new const entities_to_be_removed[][] = {
"info_deathmatch_start",
"func_breakable"
}
new fow_keyvalue
public plugin_init() {
register_plugin("Entity Removal","1.0","Unknown")
unregister_forward(FM_KeyValue,fow_keyvalue,0)
}
public plugin_precache() {
fow_keyvalue = register_forward(FM_KeyValue,"fm_keyvalue",0)
}
public fm_keyvalue(ent,kvdid) {
static key[24], value[24]
get_kvd(kvdid,KV_KeyName, key,23)
get_kvd(kvdid,KV_Value, value,23)
if(equal(key,"classname")) {
for(new i = 0; i < sizeof entities_to_be_removed; i++) {
if(equal(value,entities_to_be_removed)) {
set_kvd(kvdid,KV_Value, "plop123") //invalid classname makes engine remove the entity
}
}
}
return FMRES_IGNORED
}
Lol, where to put that? :D P.S its server with the PUB maps, its just for trainings, so it is with kz mod, anyway, is it impossible to make that? (only CT's)
Try this http://www.sendspace.com/file/n3n77m
It works, just only one person can log in... P.S in server.cfg how big has got to be the - mp_limitteams and in kz.cfg - kz_autojoin ?
mp_limitteams 0
mp_autoteambalance 0
And autojoin?
I don't know what plugin do you use... mb kz_multiplugin?
kz_autojoin 0 i think...
Please log in to post replies.