This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Switch player's weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nikol4u
Member
Join Date: Jan 2007
Location: Burgas
Old 04-01-2013 , 17:46   Switch player's weapons
Reply With Quote #1

Is there another way to force player switch to knife (when he has other weapons as well) beside
client_cmd(id, "slot3");
Nikol4u is offline
Send a message via ICQ to Nikol4u Send a message via Skype™ to Nikol4u
Bos93
Veteran Member
Join Date: Jul 2010
Old 04-01-2013 , 18:03   Re: Switch player's weapons
Reply With Quote #2

engclient_cmd( pPlayer, "weapon_knife" );
__________________

Last edited by Bos93; 04-01-2013 at 18:03.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 04-02-2013 , 01:15   Re: Switch player's weapons
Reply With Quote #3

client_cmd(id, "weapon_knife");
__________________
Blizzard_87 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-02-2013 , 01:37   Re: Switch player's weapons
Reply With Quote #4

Quote:
Originally Posted by Blizzard_87 View Post
client_cmd(id, "weapon_knife");
engclient_cmd is faster and better.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 04-02-2013 , 03:11   Re: Switch player's weapons
Reply With Quote #5

Quote:
Originally Posted by ConnorMcLeod View Post
engclient_cmd is faster and better.
cheers. will use that from now on.
__________________
Blizzard_87 is offline
Kz1.0
Senior Member
Join Date: Jan 2013
Location: Vietnam
Old 04-02-2013 , 07:34   Re: Switch player's weapons
Reply With Quote #6

client_cmd(id, "weapon_knife");

=> So weapon_knife is a command which change the current weapon to knife o.o ?
Kz1.0 is offline
Unkolix
Veteran Member
Join Date: Sep 2012
Old 04-02-2013 , 08:48   Re: Switch player's weapons
Reply With Quote #7

Quote:
Originally Posted by Kz1.0 View Post
client_cmd(id, "weapon_knife");

=> So weapon_knife is a command which change the current weapon to knife o.o ?
That's right.
Unkolix is offline
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 04-02-2013 , 08:58   Re: Switch player's weapons
Reply With Quote #8

__________________
  • ZapTic - Paintball (Version 7.1.3 b1303)
  • Your #1 CS Paintball Server since 2008
  • 85.131.163.101:27015
Leon M. is offline
Kz1.0
Senior Member
Join Date: Jan 2013
Location: Vietnam
Old 04-02-2013 , 17:49   Re: Switch player's weapons
Reply With Quote #9

Quote:
Originally Posted by Unkolix View Post
That's right.
Haha, I didn't know that, I try with weapon_ak47 and other weapons and it works too
Kz1.0 is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 04-02-2013 , 20:10   Re: Switch player's weapons
Reply With Quote #10

AFAIK client_cmd( ) does not work anymore with the 2013 HLDS update.
Does engclient_cmd( ) still work?
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 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 21:43.


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