Client command to switch weapons?
Is there one? I need it :)
Or, better yet: Can I use an array for a client cmd? like this: Code:
ATM it doesn't work but I figured I did something wrong... |
you want them to switch weapon or drop weapons?
|
Well I know that
Code:
Will drop the weapon that the player is currently holding. But, if the player is holding a m4 for example, I want him to switch his weapon to his sidearm so he can drop it. |
bind "q" "lastinv"
i believe: Code:
try it out |
Code:
Code:
|
@ satanwoj
What the idea of your plugin anyways? So player don't have secondary? Cause if you run what cheapsuit said.. and for some out of the blue he doesn't have a secondary. It try to drop what ever he is holding. |
Nah I'm gonna but lotsa if's in there :P
I'm making a plugin which enables players to buy guns from the other team. |
Code:
|
K this is where it gets weird. To start, the cs_set_user_money function doesn't work, and the weapons don't switch or drop. The weapon isn't added to the player either.
Code:
This is the only part of the plugin I'm actually testing atm. I have all the defines and new stuff up that the top of the plugin and it's all correct. P.S. Those final brackets really aren't where they look like. Edit: And my whole "You don't have enough money!" things don't worik >.< |
Code:
is this function a menu part of a menu? you can change this Code:
to Code:
|
| All times are GMT -4. The time now is 16:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.