[TC] Gaming Forums
Question about scripts - Printable Version

+- [TC] Gaming Forums (https://forum.city-driving.co.uk)
+-- Forum: General Information (/forumdisplay.php?fid=1)
+--- Forum: General Discussions (/forumdisplay.php?fid=4)
+--- Thread: Question about scripts (/showthread.php?tid=21690)



Question about scripts - Adrian - 2016-03-04 11:05

[Using Google Translator]
Hello. It's again me. This time I have a question about scripts. I had an idea to create a simple script that would help COPs. It had to work like this: When I'm calling a backup, the script automatically sends a message on COP chat about my location. Code looks like this:
Code:
/say !backup
/say !cop I need backup. My current location:
/say !copdirection
I don't like when someone calls a backup, I join the chase and it turns out that the chase is at the other end of the map, so before I get there the chase ends.
The script works in singleplayer but on [TC] CityDriving server not. On the serwer works only first command form script:
[Image: K3Tc3WL.jpg]
Regardless of how I use the script, on server always works only the first command. Is it possible to do this script to work properly on the server? If not, (suggestion) could you add something like this to InSim?
Greetings.


RE: Question about scripts - Barney - 2016-03-04 11:19

thats basically a spam-protection or technically mandatory, no clue. but its normal. you need a third-party-programm to run script 1, then an about 0.5 second delay, then you can rund script 2. or let the programm aswell to the inputs.

here is something related: http://forum.city-driving.co.uk/showthread.php?tid=21580


RE: Question about scripts - Adrian - 2016-03-04 11:47

Ok, thanks Barney.