Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: have a problem with jail script  (Read 1683 times)

0 Members and 1 Guest are viewing this topic.

Panther

  • Guest
have a problem with jail script
« on: 28 Dec 2004, 12:45:16 »
my script works like this :

you have a civil thats cald civ1

init.sqs :

civ1 addEventHandler ["killed",{[_this select 1] exec "jail.sqs"}]

jail.sqs :

_killer = _this select 0
~1
hint format [ "ATTENTION!\n%1 has killed a civilian! He will go to Jail for his crime!",(name _killer)]
~3
?_killer==player:titlecut ["","BLACK OUT",3]
~4
removeallweapons _killer
_killer setpos (getpos jail)
~1
?_killer==player:titlecut ["","BLACK IN",3]
Exit

But the problem is. With the player that has the server it works fine. But with the other player there's no black out
or black in, no RemoveAllWeapons and no hint.

dos anny 1 know what the problem is ?
and help me out :)
« Last Edit: 28 Dec 2004, 17:35:53 by Panther »

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:have a problem with jail script
« Reply #1 on: 28 Dec 2004, 15:14:26 »
i believe eventhandlers are local, since the civ is "local" to the server,that is what will exec the script, nothing else