![]() |
Turning no playerkilling off
How can you turn off noplayerkilling in a level on clientside, so it's only for a few players. It's for a spar, but I'm having trouble with making it so only 2 people can enter, and disabling the nopk zone. I know other servers do it, but I can't figure it out.
Basically I need a script to turn off the no pk (without serverwarp) and an idea for making a script that allows only 2 people in a spar |
How about:
PHP Code:
|
That only turns on no pk when you walk out of the spar area. It doesn't turn off no pk when you walk into the spar area though
|
You shouldn't even use noplayerkilling();. You should use disableweapons(); then enableweapons();. You'll probably want to use disablepause(); and disableselectweapons(); as well. Spars are a pain, so I won't bother to explain more about how you might do the door for the entrance and such.
|
hehe spars are fun.
especially custom spars like darkspar, lightspar, etc ;) |
You can't make part of a level a killing zone and the other a non-player killing zone, but, you can do this:
PHP Code:
EDIT to Skyld's post right below mines: I would expect the person to have common sense. On Maloria, I'd do something like PHP Code:
|
Quote:
|
Quote:
Now i wonder where eras comes from.. hmm Here, just made this in a second - should work: PHP Code:
|
Quote:
No, it triggers only if you get hurt while outside of the box, can't you read code? You should really read entire code before making such accusations. I would never make a public npc trigger in a loop without any conditions to tell it when to trigger. |
Quote:
|
That thing for the door doesn't work?
|
Quote:
|
| All times are GMT +2. The time now is 07:51 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.