Raised This Month: $ Target: $400
 0% 

Set lefthand and righthand weapon skins


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
feren02
Senior Member
Join Date: Mar 2012
Old 12-30-2020 , 01:36   Re: Set lefthand and righthand weapon skins
Reply With Quote #10

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;   }
Hi there, will have to try this, will keep you updated! Happy holidays!
feren02 is offline
 



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 14:09.


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