Raised This Month: $32 Target: $400
 8% 

Set lefthand and righthand weapon skins


Post New Thread Reply   
 
Thread Tools Display Modes
feren02
Senior Member
Join Date: Mar 2012
Old 01-06-2021 , 01:10   Re: Set lefthand and righthand weapon skins
Reply With Quote #11

Quote:
Originally Posted by CrazY. View Post
If the *_r models are the right hand ones, something like this

Code:
public event_Curwp( id )  {      new szHaveFlag[15];      get_pcvar_string( g_HaveFlags, szHaveFlag, charsmax( szHaveFlag ) )          new WeaponIdUserHandle = get_user_weapon( id );         if( has_all_flags( id, szHaveFlag ) )      {         new szLeftHand[15]         get_user_info(id, "lefthand", szLeftHand, charsmax(szLeftHand))         if (str_to_num(szLeftHand) == 1)         {             // left hand models here             switch ( WeaponIdUserHandle )             {                 case CSW_M4A1: set_pev( id, pev_viewmodel2, v_m4a1 );             }         }         else         {             // right hand models here             switch ( WeaponIdUserHandle )             {                 case CSW_M4A1: set_pev( id, pev_viewmodel2, v_m4a1_r );             }         }     }          return PLUGIN_CONTINUE;  }
It's a brand new year 2021! Applied it to server. It worked! Thank you for sparing your time to me, you are the only one who was able to really make it happen. Appreciate your life man! <3
feren02 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 01-06-2021 , 14:37   Re: Set lefthand and righthand weapon skins
Reply With Quote #12

You are most welcome!
Glad to be of help, happy new year!
__________________








CrazY. 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 17:33.


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