Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // NPC made by Shadow Knight
- if (playertouchsme) {
- timeout=.05;
- toweapons Staff/SK-Staff Duty;
- say2
- HOW TO USE:#b
- say "on duty" to go on duty#b
- say "off duty" to go off duty;
- }
- if (weaponfired) {
- say2
- HOW TO USE:#b
- say "on duty" to go on duty#b
- say "off duty" to go off duty;
- }
- if (playerenters||timeout||isweapon||playerchats) {
- timeout=.05;
- }
- if (isweapon) {
- if (timeout) {
- if (onduty) {
- if (! weaponsenabled) {
- enableweapons;
- }
- if (playerhearts<playerfullhearts) {
- playerhearts=playerfullhearts;
- }
- if (playerdarts<99) {
- playerdarts=99;
- }
- if (playerbombs<99) {
- playerbombs=99;
- }
- if (playermp<100) {
- playermp=100;
- }
- }
- }
- if (playerchats) {
- if (! onduty) {
- if (strequals(#c,on duty)) {
- set onduty;
- setplayerprop #c,You are now on duty!;
- }
- if (strequals(#c,off duty)) {
- setplayerprop #c,You are already off duty!;
- }}
- if (onduty) {
- if (strequals(#c,on duty)) {
- setplayerprop #c,You are already on duty;
- }
- if (strequals(#c,off duty)) {
- unset onduty;
- setplayerprop #c,You are now off duty!;
- }}}
- }
Add Comment
Please, Sign In to add comment