FlacoBey

Untitled

Jan 1st, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. #include <sourcemod>
  2. #include <sdktools>
  3.  
  4. public Action:OnPlayerRunCmd(client, &buttons,  &impulse, float vel[3], float angles[3], int& weapon)
  5. {
  6.     decl String:classname[64];
  7.     GetClientWeapon(client, classname, sizeof(classname));
  8.     if(StrEqual(classname, "weapon_rifle_m60"))
  9.     {
  10.         if (buttons & IN_ATTACK)
  11.         {
  12.             SetEntityMoveType(client, MOVETYPE_NONE)
  13.         }
  14.         else if (!(buttons & IN_USE))
  15.         {
  16.             SetEntityMoveType(client, MOVETYPE_ISOMETRIC)
  17.         }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment