08 Jan 13, 08:36PM
(This post was last modified: 08 Jan 13, 08:38PM by RandumKiwi.)
(08 Jan 13, 07:15PM)888 Wrote: You edit /config/scontext.cfg in the current version
You replace by
[SELECT ALL] Code:alias context_core 0 // hardcoded scripts
alias context_cfg 1 // known scripts
alias context_prompt 2 // command prompt
alias context_mapcfg 3 // map configs, we don't trust them
// set allowed commands for the map config context
alias mapcfgidents [ loadnotexture loadsky mapmodelreset mapmodel texturereset echo texture fog fogcolour mapsoundreset mapsound watercolour shadowyaw ]
loop i (listlen $mapcfgidents) [
scriptcontext $context_mapcfg (at $mapcfgidents $i)
]
// isolate the map config context
// this disables access from this context to identifiers located in other contexts
// also it removes all aliases created in this context once the running context changes
isolatecontext $context_mapcfg
// secure this configuration for the rest of the game
sealcontexts
So ,you can now to put the command "echo" in the map .
Edit packages\maps\official/your-map.cfg and add :
When you run the map ,you see ok[SELECT ALL] Code:echo ok
I should note, we won't add echo as an allowed command in the package - it will get abused.
This won't work, the server will recognise your map cfg to be different and won't let you spawn until you getmap the correct one.