Home   Help Search Login Register  

Author Topic: have a problem with jail script  (Read 1105 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