Forum

> > CS2D > Scripts > ERROR: Unknown command
Forums overviewCS2D overview Scripts overviewLog in to reply

English ERROR: Unknown command

6 replies
To the start Previous 1 Next To the start

old ERROR: Unknown command

IvanGM
User Off Offline

Quote
Script: Zombie Plague Mod 1.15b

Command: zp_give_ap <id> <ap> - Give Ammo Packs For Player

ERROR: Unknown command 'zp_give_ap' (zp_give_ap 1 1000)
Use quotation marks for parameters with blanks. e.g.: mp_unbuyable "Tactical Shield"
Visit CS2D.com/help for a command reference

How do I fix it?

old Re: ERROR: Unknown command

IvanGM
User Off Offline

Quote
-- Dofiles --
zp_dir = 'sys/lua/zombieplague/zp_'
snd_dir = 'zombieplague/zp_'
dofile(zp_dir..'config.cfg')
dofile(zp_dir..'values.lua')
dofile(zp_dir..'func_up.lua')
dofile(zp_dir..'console.lua')
dofile(zp_dir..'filter.lua')
dofile(zp_dir..'func_m.lua')
dofile(zp_dir..'func.lua')
dofile(zp_dir..'settings.cfg')

-- Hooks --
addhook("team","zp_team")
addhook("join","zp_join")
addhook("spawn","zp_spawn")
addhook("kill","zp_kill")
addhook("hit","zp_hit")
addhook("menu","zp_menu")
addhook("serveraction","zp_serveraction")
addhook("minute","zp_minute")
addhook("projectile","zp_projectile")
addhook("second","zp_second")
addhook("startround","zp_startround")
addhook("endround","zp_endround")
addhook("drop","zp_drop")
addhook("die","zp_die")
addhook("parse","zp_parse")
addhook("buy","zp_buy")
addhook("leave","zp_leave")
addhook("say","zp_say")

old Re: ERROR: Unknown command

Yates
Reviewer Off Offline

Quote
If using the console remember to use rcon "command." - If you're using the chat use !"command."

There is no error in the script, other wise I would have known as I used the script for a few months. You're just doing it wrong.

old Re: ERROR: Unknown command

IvanGM
User Off Offline

Quote
Command: rcon zp_give_ap 1 1000

ERROR: RCon: Only certain U.S.G.N. users are allowed to use RCon on this server.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview