Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.86 KB | None | 0 0
  1. public Action:OnPlayerRunCmd(Client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon)
  2. {  
  3.     if(buttons & IN_ATTACK2)
  4.     {
  5.         if(AccessKey[Client] == false)
  6.         {
  7.             TeleportWichSave(Client);
  8.             AccessKey[Client] = true;
  9.         }
  10.     }
  11.     else
  12.     {
  13.         AccessKey[Client] = false;
  14.     }
  15. }
  16. public TeleportWichSave(Client)
  17. {  
  18.     if(Teleport[Client] == true)
  19.     {
  20.         if(TeleportWichDelay[Client] == false)
  21.         {
  22.             new String:weapons[32];
  23.             GetClientWeapon(Client, weapons, sizeof(weapons));
  24.             if(StrEqual(weapons, "weapon_hegrenade"))
  25.             {
  26.                 GetClientAbsOrigin(Client, oldabspos[Client]);
  27.                 GetClientEyeAngles(Client, oldangle[Client]);
  28.                 oldangle[Client][0] = 0.0;
  29.                
  30.                 PrintToChat(Client, "\x04μœ„μΉ˜ μ €μž₯");
  31.                
  32.                 old[Client] = true;
  33.                 TeleportWichDelay[Client] = true;
  34.             }
  35.         }
  36.         else
  37.         {
  38.             TeleportWichDelay[Client] = false;
  39.         }
  40.     }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement