Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Action:OnPlayerRunCmd(Client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon)
- {
- if(buttons & IN_ATTACK2)
- {
- if(AccessKey[Client] == false)
- {
- TeleportWichSave(Client);
- AccessKey[Client] = true;
- }
- }
- else
- {
- AccessKey[Client] = false;
- }
- }
- public TeleportWichSave(Client)
- {
- if(Teleport[Client] == true)
- {
- if(TeleportWichDelay[Client] == false)
- {
- new String:weapons[32];
- GetClientWeapon(Client, weapons, sizeof(weapons));
- if(StrEqual(weapons, "weapon_hegrenade"))
- {
- GetClientAbsOrigin(Client, oldabspos[Client]);
- GetClientEyeAngles(Client, oldangle[Client]);
- oldangle[Client][0] = 0.0;
- PrintToChat(Client, "\x04μμΉ μ μ₯");
- old[Client] = true;
- TeleportWichDelay[Client] = true;
- }
- }
- else
- {
- TeleportWichDelay[Client] = false;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement