Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- playerent *targetplayer = playerincrosshair();
- bool menu = menuvisible();
- bool command = getcurcommand() ? true : false;
- if((p->state==CS_ALIVE || p->state==CS_EDITING) && !p->weaponsel->reloading)
- {
- bool drawteamwarning = crosshairteamsign && targetplayer && isteam(targetplayer->team, p->team) && targetplayer->state==CS_ALIVE;
- p->weaponsel->renderaimhelp(drawteamwarning);
- }
- if(targetplayer != NULL && targetplayer->state == CS_ALIVE) //we have a player in our crosshair and he's alive
- {
- if(p->team != targetplayer->team) //fix this
- {
- //shoot
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement