Raised This Month: $ Target: $400
 0% 

[SOLVED] Get Players Current Weapon?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-02-2013 , 15:57   Re: Get Players Current Weapon?
Reply With Quote #1

Quote:
Originally Posted by hornet View Post
What's wrong with get_user_weapon() ?
that's works fine untill i changed weapon. then it doesnt check the new weapon in holding.

SOLVED:

Code:
public Update_CurWeap( id ) {     new iWeapon = get_user_weapon(id);     get_weaponname(iWeapon, szWeapon, 31); }

Thanks zi443r that helped.
__________________

Last edited by Blizzard_87; 05-02-2013 at 16:11.
Blizzard_87 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-02-2013 , 16:07   Re: Get Players Current Weapon?
Reply With Quote #2

give example, detail more, explain how to reproduce.
get_user_weapon seems really fine for what you discribe.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-02-2013 , 19:19   Re: Get Players Current Weapon?
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
give example, detail more, explain how to reproduce.
get_user_weapon seems really fine for what you discribe.
sorry i used it in this function in the end.

Code:
if( equal( type, "guns" ) )     {           new szWeaponName[ 32 ], iWeapon = get_user_weapon(id);         get_weaponname(iWeapon, szWeaponName, 31);                 ham_strip_weapon( id, szWeaponName );         ham_give_weapon( g_iDonationTarget, szWeaponName );         Color( 0, "%s !t%s!n Donated !g%s!n To !t%s!n", PREFIX, dName, szWeaponName, rName );         show_dhudmessage( g_iDonationTarget, "[ Donation Revieved ]^n^n Weapon: %s^n^nFrom %s", szWeaponName, dName );     }
__________________
Blizzard_87 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 10:51.


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