SHARE
TWEET

Untitled

a guest Jan 18th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void PlayerArmsModel(int Client)
  2. {
  3.     if(!IsValidClient(Client))
  4.         return;
  5.    
  6.     ArmsFix_SetDefaultArms(Client);
  7.  
  8.     if(!StrEqual(SkinName[Client], DEFAULT_NAME, false) && SkinEnable[Client] == 1)
  9.     {
  10.         if(StrEqual(SkinName[Client], "랜덤", false))
  11.         {
  12.             if(!StrEqual(Skin_Arms[RandomSkin[Client]], CODE_NONE, false))
  13.             {
  14.                 SetEntPropString(Client, Prop_Send, "m_szArmsModel", Skin_Arms[RandomSkin[Client]]);
  15.             }
  16.         }
  17.         else
  18.         {
  19.             if(!StrEqual(SkinArms[Client], CODE_NONE, false))
  20.             {
  21.                 SetEntPropString(Client, Prop_Send, "m_szArmsModel", SkinArms[Client]);
  22.             }
  23.         }      
  24.     }
  25. }
  26.  
  27. public Action:PlayerModel(Handle:timer, any:Client)
  28. {
  29.     if(!IsValidClient(Client))
  30.         return;
  31.  
  32.     if(!StrEqual(SkinName[Client], DEFAULT_NAME, false) && SkinEnable[Client] == 1)
  33.     {
  34.         if(StrEqual(SkinName[Client], "랜덤", false))
  35.         {          
  36.             SetEntityModel(Client, Item_Code[RandomSkin[Client]]);
  37.         }
  38.         else
  39.         {
  40.             SetEntityModel(Client, SkinCode[Client]);
  41.         }
  42.        
  43.         if(GetClientTeam(Client) == 2)
  44.         {
  45.             Remove_LightEffect(Client);
  46.             Create_LightEffect(Client, "materials/sprites/guppy/redglow1.vmt");
  47.         }
  48.        
  49.         if(GetClientTeam(Client) == 3)
  50.         {
  51.             Remove_LightEffect(Client);
  52.             Create_LightEffect(Client, "materials/sprites/guppy/blueglow1.vmt");
  53.         }
  54.     }
  55. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top