Raised This Month: $ Target: $400
 0% 

Drop Weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kriax
Senior Member
Join Date: Apr 2012
Old 11-02-2012 , 13:13   Drop Weapon
Reply With Quote #1

Hello,

I am loogin for how to maje a weapon is on the ground without moving once walked on.

I used Cs_DropWeapon, but the weapon moves ...

Could someone explain to me how ?

Thank You.

Kriax.

Spoiler
Kriax is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 11-02-2012 , 13:18   Re: Drop Weapon
Reply With Quote #2

phys_pushscale 0; sv_turbophysics 0
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot
Root_ is offline
Inso58
New Member
Join Date: Nov 2012
Old 11-02-2012 , 15:01   Re: Drop Weapon
Reply With Quote #3

You can use SdkHooks - OnWeaponCanUse.
Inso58 is offline
Kriax
Senior Member
Join Date: Apr 2012
Old 11-05-2012 , 14:42   Re: Drop Weapon
Reply With Quote #4

I use OnWeaponCanUse, it only works during the action of the client OnWeaponCanUse, I display a sentence, but that sentence flood the chat as we remain on the weapon.

How can I do to stop it flooding the chat?

Thank you.

Kriax.

Spoiler

Kriax is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 11-05-2012 , 15:35   Re: Drop Weapon
Reply With Quote #5

Quote:
Originally Posted by Kriax View Post
I use OnWeaponCanUse, it only works during the action of the client OnWeaponCanUse, I display a sentence, but that sentence flood the chat as we remain on the weapon.

How can I do to stop it flooding the chat?

Thank you.

Kriax.

Spoiler
What is it you're trying to accomplish?
__________________
View my Plugins | Donate
TnTSCS is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 11-05-2012 , 15:51   Re: Drop Weapon
Reply With Quote #6

Quote:
Originally Posted by Kriax View Post
I use OnWeaponCanUse, it only works during the action of the client OnWeaponCanUse, I display a sentence, but that sentence flood the chat as we remain on the weapon.

How can I do to stop it flooding the chat?

Thank you.

Kriax.

Spoiler

Create a global bool that is reset through a timer and only print if the bool is true (or false depending on your system).
__________________
Need help? PM me or add me on Steam.
My Steam




Quote:
Originally Posted by Rp.KryptoNite View Post
For some reason his Plugin never worked for me ,
@credits were added
im not stealing any plugins dude its my THING
minimoney1 is offline
Kriax
Senior Member
Join Date: Apr 2012
Old 11-05-2012 , 16:13   Re: Drop Weapon
Reply With Quote #7

It's work !

Thank you.

Kriax.
Kriax is offline
Kriax
Senior Member
Join Date: Apr 2012
Old 11-06-2012 , 13:50   Re: Drop Weapon
Reply With Quote #8

Hello,

How do i find ou the client has a weapon, this "action" made if the weapon is in the back or in the player's hand

Sorry for my bad language :$

Thank You.

Kriax.


Spoiler
Kriax is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 11-06-2012 , 14:45   Re: Drop Weapon
Reply With Quote #9

Quote:
Originally Posted by Kriax View Post
Hello,

How do i find ou the client has a weapon, this "action" made if the weapon is in the back or in the player's hand

Sorry for my bad language :$

Thank You.

Kriax.


Spoiler
PHP Code:
if (GetPlayerWeaponSlot(client1) != -1)
{
    
PrintToChatAll("%N has a gun in his slot number 1!!!!1111"client);

__________________
Need help? PM me or add me on Steam.
My Steam




Quote:
Originally Posted by Rp.KryptoNite View Post
For some reason his Plugin never worked for me ,
@credits were added
im not stealing any plugins dude its my THING

Last edited by minimoney1; 11-06-2012 at 14:46.
minimoney1 is offline
Kriax
Senior Member
Join Date: Apr 2012
Old 11-06-2012 , 15:03   Re: Drop Weapon
Reply With Quote #10

How do i check if the weapon is awp slots (for example).
I can not use GetClientWeapon view that he took the weapon in his hands.

Thank you.

Kriax.


Spoiler
Kriax 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 20:54.


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