Raised This Month: $ Target: $400
 0% 

how to restrict all weapons only for 1 player?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 06-17-2009 , 06:37   how to restrict all weapons only for 1 player?
Reply With Quote #1

tittle.
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 06-17-2009 , 06:44   Re: how to restrict all weapons only for 1 player?
Reply With Quote #2

Should work.
Code:
#include <amxmodx>   new g_bHasWeapsRestricted[33];   public plugin_init()         register_event("CurWeapon", "eventCurWeapon", "be", "1=1");   public fnSomeFunc(iCl)         g_bHasWeapsRestricted[iCl] = true;   public eventCurWeapon(iCl)         if (g_bHasWeapsRestricted[iCl] && read_data(2) != CSW_KNIFE)                 engclient_cmd(iCl, "drop");
__________________
hleV is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-17-2009 , 06:44   Re: how to restrict all weapons only for 1 player?
Reply With Quote #3

http://forums.alliedmods.net/showthread.php?p=691809
Search rules ?
__________________
xPaw is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 06-17-2009 , 07:03   Re: how to restrict all weapons only for 1 player?
Reply With Quote #4

1. ty but this not work.
2. i found this one, but its not what i want need just a simple restrict that i can use in my if.

if this & this
restrict all weapon(id)

__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 06-17-2009 , 07:05   Re: how to restrict all weapons only for 1 player?
Reply With Quote #5

Code:
if (this && this)         g_bHasWeapsRestricted[id] = true;
or
Code:
stock fnRestrictWeaps(id, status)         g_bHasUserWeapsRestricted[id] = status;
__________________
hleV is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 06-17-2009 , 07:30   Re: how to restrict all weapons only for 1 player?
Reply With Quote #6

CS crash & nothing in log
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-17-2009 , 08:30   Re: how to restrict all weapons only for 1 player?
Reply With Quote #7

I can add an all-weapons command:

http://forums.alliedmods.net/showthread.php?t=78116
__________________
Bugsy 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 15:34.


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