Alliedassault

Alliedassault (alliedassault.us/index.php)
-   MoH Maps, Mods & Skins (alliedassault.us/forumdisplay.php?f=11)
-   -   Execute script file (alliedassault.us/showthread.php?t=13838)

klop 11-30-2002 03:30 PM

Execute script file
 
Is it possible to execute a script file (scr) when I press a key?

bind m "exec global/script.scr" doesnt work...

BD 11-30-2002 03:31 PM

I think you can only execute configs, but I might be wrong.

klop 11-30-2002 03:35 PM

Yeah that was I thought but maybe theres a way to execute script when the user press a key?

Surgeon 11-30-2002 04:19 PM

What exactly are you wanting the script to do ?

klop 11-30-2002 04:21 PM

I wanna show a message using the iprintln function when the user press a key for example...

BD 11-30-2002 10:30 PM

You mean like when you press the key, you say a pre-programmed comment?

klop 12-01-2002 12:32 AM

Nope first do you know what does the function iprintln do? I dont wanna use the say command...

I want to execute a script when the user press a key...

The message I wanna show is where u can see "A bomb has been planted" in the left part of the screen...

klop 12-01-2002 08:46 AM

Or is it possible to execute a script when a cvar value has changed?

Onor_Deception[Sgt] 12-01-2002 03:27 PM

I would try renaming the scr to cfg. Very wild guess, but whynot try it.

klop 12-01-2002 05:26 PM

Thats okay someone from TMT answered my question but thanks for the help anyway!


All times are GMT -6. The time now is 12:00 PM.

Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.