AssaultCube 1.2.0.0 Beta release
(08 Jan 13, 07:15PM)888 Wrote: You edit /config/scontext.cfg in the current version
You replace by
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 :
echo ok
When you run the map ,you see 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.
Thanks given by:


Messages In This Thread
RE: AssaultCube 1.2.0.0 Beta release - by Jg99 - 09 Dec 12, 11:57PM
RE: AssaultCube 1.2.0.0 Beta release - by Jg99 - 10 Dec 12, 01:54AM
RE: AssaultCube 1.2.0.0 Beta release - by Jg99 - 10 Dec 12, 02:08AM
RE: AssaultCube 1.2.0.0 Beta release - by XFA - 10 Dec 12, 02:26AM
RE: AssaultCube 1.2.0.0 Beta release - by 1Cap - 10 Dec 12, 06:32AM
RE: AssaultCube 1.2.0.0 Beta release - by Cho - 11 Dec 12, 03:19AM
RE: AssaultCube 1.2.0.0 Beta release - by 888 - 11 Dec 12, 09:23AM
RE: AssaultCube 1.2.0.0 Beta release - by RCJD - 11 Dec 12, 02:42PM
RE: AssaultCube 1.2.0.0 Beta release - by 1Cap - 11 Dec 12, 09:15PM
RE: AssaultCube 1.2.0.0 Beta release - by 888 - 11 Dec 12, 11:00PM
RE: AssaultCube 1.2.0.0 Beta release - by 888 - 12 Dec 12, 07:28AM
RE: AssaultCube 1.2.0.0 Beta release - by RCJD - 12 Dec 12, 08:03AM
RE: AssaultCube 1.2.0.0 Beta release - by jamz - 12 Dec 12, 04:45PM
RE: AssaultCube 1.2.0.0 Beta release - by 888 - 12 Dec 12, 06:04PM
RE: AssaultCube 1.2.0.0 Beta release - by macm - 12 Dec 12, 10:17PM
RE: AssaultCube 1.2.0.0 Beta release - by jamz - 14 Dec 12, 04:10PM
RE: AssaultCube 1.2.0.0 Beta release - by RCJD - 14 Dec 12, 04:23AM
RE: AssaultCube 1.2.0.0 Beta release - by 888 - 14 Dec 12, 07:44AM
RE: AssaultCube 1.2.0.0 Beta release - by jamz - 15 Dec 12, 09:48AM
RE: AssaultCube 1.2.0.0 Beta release - by Jg99 - 15 Dec 12, 02:34AM
RE: AssaultCube 1.2.0.0 Beta release - by 888 - 16 Dec 12, 10:04AM
RE: AssaultCube 1.2.0.0 Beta release - by XFA - 17 Dec 12, 02:01PM
RE: AssaultCube 1.2.0.0 Beta release - by Cho - 18 Dec 12, 02:46AM
RE: AssaultCube 1.2.0.0 Beta release - by Leko - 28 Dec 12, 10:08PM
RE: AssaultCube 1.2.0.0 Beta release - by Bukz - 06 Jan 13, 03:34AM
RE: AssaultCube 1.2.0.0 Beta release - by Bukz - 07 Jan 13, 12:08AM
RE: AssaultCube 1.2.0.0 Beta release - by 888 - 08 Jan 13, 07:15PM
RE: AssaultCube 1.2.0.0 Beta release - by RandumKiwi - 08 Jan 13, 08:36PM
RE: AssaultCube 1.2.0.0 Beta release - by 888 - 08 Jan 13, 09:29PM
RE: AssaultCube 1.2.0.0 Beta release - by Bukz - 09 Jan 13, 06:11AM
RE: AssaultCube 1.2.0.0 Beta release - by 888 - 12 Jan 13, 12:04PM
RE: AssaultCube 1.2.0.0 Beta release - by ONYX - 25 Jan 13, 09:57AM
RE: AssaultCube 1.2.0.0 Beta release - by ONYX - 30 Jan 13, 01:05PM
RE: AssaultCube 1.2.0.0 Beta release - by 888 - 26 Jan 13, 04:08PM
RE: AssaultCube 1.2.0.0 Beta release - by Skinny-Dog - 23 Feb 13, 02:13AM
RE: AssaultCube 1.2.0.0 Beta release - by 888 - 02 Mar 13, 07:15PM
RE: AssaultCube 1.2.0.0 Beta release - by |HP| - 19 Apr 13, 11:52AM
RE: AssaultCube 1.2.0.0 Beta release - by Bukz - 20 Apr 13, 02:14PM
RE: AssaultCube 1.2.0.0 Beta release - by Bukz - 20 Apr 13, 05:06PM
RE: AssaultCube 1.2.0.0 Beta release - by Bukz - 20 Apr 13, 06:41PM
RE: AssaultCube 1.2.0.0 Beta release - by |HP| - 22 Apr 13, 05:58PM
RE: AssaultCube 1.2.0.0 Beta release - by Bukz - 22 Apr 13, 06:11PM