View Single Post
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 01-29-2016 , 01:30   Re: [STOCK] give_user_weapon
Reply With Quote #10

Note:

Edit: Just a problem, if you want take the name of hegrenade/sk/fl or c4, you should do something like that:

Code:
// Example of get weapon name on a smokegrenade: new WeaponName[20]; give_user_weapon( id, CSW_SMOKEGRENADE, _, 3, WeaponName, charsmax( WeaponName ) ); client_print( id, print_chat, " You got 3 %s", WeaponName );

You need to skip an parameter ( "iClip" ), as is not used.

( Only on Hegrenade, FlashBang,Smokegrenade & C4 )

Last edited by Craxor; 02-02-2016 at 04:56.
Craxor is offline
Send a message via ICQ to Craxor