Raised This Month: $51 Target: $400
 12% 

block kill command with slay delay


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wazzgod
Member
Join Date: Oct 2005
Location: Home
Old 07-24-2011 , 00:31   block kill command with slay delay
Reply With Quote #1

when you are about to kill a person and they type kill in console (or a bind)
and you don't get the kill, its very annoying.

so if someone could create a script that would block the kill command.
and then create a variable that after X seconds say like default 10 seconds delay it will slay that player that would be very awesome.

Thx.
__________________
People Who Think They Know Everything
Are Very Irritating To Those Of Us Who Do.
wazzgod is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 07-24-2011 , 01:23   Re: block kill command with slay delay
Reply With Quote #2

you also have to block the explode command... and maybe a couple more... i can give you something that will work... have you searched the plugins to make sure someone didnt already make one
TnTSCS is offline
wazzgod
Member
Join Date: Oct 2005
Location: Home
Old 07-24-2011 , 02:19   Re: block kill command with slay delay
Reply With Quote #3

well i have basic script smarts.


this is what i got so far.
http://pastebin.com/AXWDCgs7



my problem is that im not sure the

public OnPluginEnd()
{
new flags_kill = GetCommandFlags("kill");
SetCommandFlags("kill", flags_kill|FCVAR_NOTIFY);
}

is correct.

How do you unset the "kill" command so its not a cheat command.
__________________
People Who Think They Know Everything
Are Very Irritating To Those Of Us Who Do.
wazzgod is offline
wazzgod
Member
Join Date: Oct 2005
Location: Home
Old 07-24-2011 , 02:29   Re: block kill command with slay delay
Reply With Quote #4

Never mind i figured it out > all done ... ill submit my plugin for approval here soon.
__________________
People Who Think They Know Everything
Are Very Irritating To Those Of Us Who Do.
wazzgod is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 07-28-2011 , 09:50   Re: block kill command with slay delay
Reply With Quote #5

as requested, plugin posted here
TnTSCS is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode