English ERROR: Unknown command

6 replies
Goto Page
To the start Previous 1 Next To the start
20.05.12 08:13:45 pm
Up
IvanGM
User
Offline Off
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?
20.05.12 08:17:12 pm
Up
Cure Pikachu
User
Offline Off
Any conflicting scripts?
BTW if the command still works correctly, it shouldn't be a big deal.
IMG:https://i.imgur.com/uUrye71.png
IMG:https://i.imgur.com/xpsyQRX.png
20.05.12 08:19:23 pm
Up
Apache uwu
User
Offline Off
Search the files made by use that are linked to cs2d by means of process or dofile the keywords 'addhook("parse"'.
20.05.12 08:21:51 pm
Up
IvanGM
User
Offline Off
-- 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")
20.05.12 08:22:11 pm
Up
Yates
Reviewer
Offline Off
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.
20.05.12 08:29:46 pm
Up
IvanGM
User
Offline Off
Command: rcon zp_give_ap 1 1000

ERROR: RCon: Only certain U.S.G.N. users are allowed to use RCon on this server.
20.05.12 08:32:33 pm
Up
Yates
Reviewer
Offline Off
Open your server.cfg file. Remove the line;
Code:
1
rcon_users ""
To the start Previous 1 Next To the start