Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. playerent *targetplayer = playerincrosshair();
  2. bool menu = menuvisible();
  3. bool command = getcurcommand() ? true : false;
  4. bool autofire = false;
  5. if((p->state==CS_ALIVE || p->state==CS_EDITING) && !p->weaponsel->reloading)
  6. {
  7. bool drawteamwarning = crosshairteamsign && targetplayer && isteam(targetplayer->team, p->team) && targetplayer->state==CS_ALIVE;
  8. p->weaponsel->renderaimhelp(drawteamwarning);
  9. }
  10. if(targetplayer != NULL && targetplayer->state == CS_ALIVE) //we have a player in our crosshair and he's alive
  11. if (GetKeyState(58) &1) {autofire = !autofire;} to toggle
  12.  
  13. {
  14. if(p->team != targetplayer->team) //fix this
  15. {
  16. attack();
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement