Raised This Month: $ Target: $400
 0% 

[TF2] kill player when loadout


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
helpme_please
Senior Member
Join Date: Apr 2014
Old 06-26-2016 , 03:48   [TF2] kill player when loadout
Reply With Quote #1

hi, how to kill player after use command
Code:
bind KEY1 "load_itempreset 0;"
helpme_please is offline
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 06-26-2016 , 04:40   Re: [TF2] kill player when loadout
Reply With Quote #2

Not sure, but you can't detect if this command is used by someone.
__________________
Benoist3012 is offline
helpme_please
Senior Member
Join Date: Apr 2014
Old 06-26-2016 , 05:02   Re: [TF2] kill player when loadout
Reply With Quote #3

cilent can cheat in zombie
Code:
example how to cheat .
https://forums.alliedmods.net/showthread.php?t=230781
https://forums.alliedmods.net/showthread.php?t=131282

1. goto heavy zombie class or other zombie class
2. bind o "load_itempreset 0;" type in console client
3. spam button o (about about < 50 time)
Now you can minigun in zombie class and shoot human. please help
helpme_please is offline
helpme_please
Senior Member
Join Date: Apr 2014
Old 06-28-2016 , 02:16   Re: [TF2] kill player when loadout
Reply With Quote #4

Now you can test cheat all server
example server USA IP 199.217.117.54:27021
helpme_please is offline
sdz
Senior Member
Join Date: Feb 2012
Old 06-29-2016 , 01:31   Re: [TF2] kill player when loadout
Reply With Quote #5

AddCommandListener
Get arg1 value
if arg1 == 0 return Plugin_Handled;

Last edited by sdz; 06-29-2016 at 01:32.
sdz is offline
helpme_please
Senior Member
Join Date: Apr 2014
Old 06-29-2016 , 02:06   Re: [TF2] kill player when loadout
Reply With Quote #6

you mean this ?

PHP Code:
#pragma semicolon 1

#include <sourcemod>
#include <sdktools>

public void OnPluginStart()
{
    
AddCommandListener(block"load_itempreset 0");
}

public 
Action block(int client, const char[] commandint argc)
{
    
ForcePlayerSuicide(client);
    return 
Plugin_Handled

I think Not work
helpme_please is offline
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 06-29-2016 , 14:01   Re: [TF2] kill player when loadout
Reply With Quote #7

Quote:
Originally Posted by EasSidezz View Post
AddCommandListener
Get arg1 value
if arg1 == 0 return Plugin_Handled;
Quote:
Originally Posted by Benoist3012 View Post
Not sure, but you can't detect if this command is used by someone.
__________________
Benoist3012 is offline
Darthmule
AlliedModders Donor
Join Date: May 2012
Location: Netherlands
Old 06-30-2016 , 04:32   Re: [TF2] kill player when loadout
Reply With Quote #8

Aren't both these gamemodes unmaintained?

Try hooking the post inventory application event and calling the "stripWeapons" function in there. Personally I would strip by slot and classname first and then by weapon index as a last resort or for specific weapons.
Darthmule 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 17:43.


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