Forcetapout & server cfg
•
25 Nov 2010, 19:17
•
Journals
Since summercup cfg, forcetapout is bugged, sometimes we cant gib when we got killed by a nade or others explosions..so we enjoy some shit full :-D
When do coder / serv cfg maker will fix this bugged forcetapout ?
or just take old cfg and edit ?
When do coder / serv cfg maker will fix this bugged forcetapout ?
or just take old cfg and edit ?
WHAT ?
uhhm I dont have this but on some servers the fucking crane controls at supply are fucking bugged
This should fix it
function et_ClientCommand(cno,cmd)
cmd = string.lower(cmd)
if cmd == "class" then
if et.trap_Argv(1) == "c" then
if et.trap_Argv(2) == "3" then
for j = 0, (maxclients - 1) do
if getTeam(j) == 2 and getWeapon(j) == 41 then
sniperallies = sniperallies +1
end
end
if getWeapon(cno) == 41 then
sniperallies = sniperallies -1
end
if sniperallies > 0 then
sniperallies = 0
setPlayerWeapon(cno , 10) -- Set Weapon to Sten
return 1
end
for j = 0, (maxclients - 1) do
if getTeam(j) == 1 and getWeapon(j) == 32 then
sniperaxis = sniperaxis +1
end
end
if getWeapon(cno) == 32 then
sniperaxis = sniperaxis -1
end
if sniperaxis > 0 then
sniperaxis = 0
setPlayerWeapon(cno , 10) -- Set Weapon to Sten
return 1
end
end
end
end
if cmd == "team" then
if et.trap_Argv(1) == "b" then
if et.trap_Argv(2) == "4" then
if et.trap_Argv(3) == "25" then
for j = 0, (maxclients - 1) do
if getTeam(j) == 2 and getWeapon(j) == 25 then
sniperallies = sniperallies +1
end
end
if getWeapon(cno) == 25 then
sniperallies = sniperallies -1
end
if sniperallies > 0 then
sniperallies = 0
setPlayerWeapon(cno , 10) -- Set Weapon to Sten
return 1
end
end
end
end
end
if cmd == "team" then
if et.trap_Argv(1) == "r" then
if et.trap_Argv(2) == "4" then
if et.trap_Argv(3) == "32" then
for j = 0, (maxclients - 1) do
if getTeam(j) == 1 and getWeapon(j) == 32 then
sniperaxis = sniperaxis +1
end
end
if getWeapon(cno) == 32 then
sniperaxis = sniperaxis -1
end
if sniperaxis > 0 then
sniperaxis = 0
setPlayerWeapon(cno , 10) -- Set Weapon to Sten
return 1
end
end
end
end
end
if cmd == "ws" then
local n = tonumber(et.trap_Argv(1))
if not n then
et.G_LogPrint(string.format("wsfix: client %d bad ws not a number [%s]\n",cno,tostring(et.trap_Argv(1))))
return 1
end
if n < 0 or n > 21 then
et.G_LogPrint(string.format("wsfix: client %d bad ws %d\n",cno,n))
return 1
end
return 0
end
if cmd == "callvote" or cmd == "ref" or cmd == "sa" or cmd == "semiadmin" then
local args=et.ConcatArgs(1)
-- et.G_LogPrint(string.format("combinedfixes: client %d %s [%s]\n",cno,cmd,args))
if string.find(args,"[\r\n]") then
et.G_LogPrint(string.format("combinedfixes: client %d bad %s [%s]\n",cno,cmd,args))
return 1;
end
return 0
end
return 0
end
Btw I thought summer config is outdated. Isn't it fall config now?
I thought he talks about the combinedsc.lua ;o
and i said "since summercup cfg" :p
ps: if your edit work, pm cb / esl admins thx
ahahahahahahahahaha