Raised This Month: $32 Target: $400
 8% 

All Snipers Crosshair [3.1]


Post New Thread Reply   
 
Thread Tools Display Modes
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 10-12-2008 , 18:40   Re: All Snipers Crosshair
Reply With Quote #11

If you'd make bullets going where you aim (if standing on ground and velocity is 0) then it would be just perfect. =)
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 10-12-2008 , 18:52   Re: All Snipers Crosshair
Reply With Quote #12

Quote:
Originally Posted by MPNumB View Post
If you'd make bullets going where you aim (if standing on ground and velocity is 0) then it would be just perfect. =)
with cvar!
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 10-17-2008 , 02:01   Re: All Snipers Crosshair
Reply With Quote #13

Quote:
Originally Posted by connorr View Post
There's no shake with this plugin.

tuti you should really update with #4 code.
Maybe if he didn't have people completing rewriting his stuff he would.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-17-2008 , 05:45   Re: All Snipers Crosshair
Reply With Quote #14

I thought that we are here to learn and creating quality plugins.
Really my apologies to try to help him. Its original code was badly coded. Connor has rewrited its code too and Tuty has updated it with that.

All I've done is to show him how he can customize its plugin using flag since he's a beginner in Pawn. Feel free for him to update its code or not with my exemple.

Maybe if he didn't have people completing rewriting his stuff he would. <== Maybe he should not post here unless he know how to code properly. So people will not rewrite its code.
__________________
Arkshine is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 10-19-2008 , 11:14   Re: All Snipers Crosshair
Reply With Quote #15

Without people like you arkshine, and connorr, noobs like me would stay noobs forever.
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 10-19-2008 , 12:59   Re: All Snipers Crosshair
Reply With Quote #16

This plugin is good
I use it in my server, and it works...
So why wouldnt you accept?
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 10-19-2008 , 17:51   Re: All Snipers Crosshair
Reply With Quote #17

Quote:
Originally Posted by MPNumB View Post
If you'd make bullets going where you aim (if standing on ground and velocity is 0) then it would be just perfect. =)
Use avalanche's plugin... search the forums for I Aim Good
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-20-2008 , 01:05   Re: All Snipers Crosshair
Reply With Quote #18

Code corrected.

PHP Code:
#include <amxmodx>
#include <amxmisc>

new gi_MsgCrosshair;
new 
gi_Flags;

#define IsWeaponAllowed ( gi_Flags & ( 1 << read_data ( 2 ) ) )

public plugin_init()
{
    
register_plugin "All Snipers Crosshair""2.1""tuty" );
    
register_event "CurWeapon""Event_CurWeapon""be" "1=1""2=3""2=13""2=18""2=24" )
 
    
register_concmd "amx_snipers_crosshair""Command_Crosshair"ADMIN_CFG"amx_snipers_crosshair <flags>" );
    
gi_MsgCrosshair get_user_msgid "Crosshair" );
}
 
public 
Event_CurWeapon ( const id )
{
    
// --| Add a crosshair if allowed for this weapon.
    // --| Note: crosshair disappears after each shot, so need to update each time. :/
    
if ( IsWeaponAllowed )
    {
        
message_begin MSG_ONE_UNRELIABLEgi_MsgCrosshair _id );
        
write_byte );
        
message_end ();
    }
}

public 
Command_Crosshair idlevelcid )
{
    if ( 
cmd_access idlevelcid) )
    {
        
// --| Retrieve the flags from command.
        
new s_Flags]; read_argv 1s_Flagscharsmax s_Flags ) );
        
        
// --| Get the flags value. Called only when the command is used.
        // GetSniperFlags already set the variable
        
GetSniperFlags s_Flags );
    }
    
    return 
PLUGIN_HANDLED;
}

GetSniperFlags ( const s_Flags[] ) 
{
    
// --| Snipes reference id.
    
static const i_SnipersIds[] = { CSW_SCOUT CSW_SG550 CSW_AWP CSW_G3SG1 };
    
    
// --| Initiliaze values.
    
new ic_Letteri_Val;

    
// --| Initiliaze gi_Flags
    
gi_Flags 0

    
// --| Get the bitwise sum considering the snipes id.
    
while ( ( c_Letter s_Flagsi++ ] ) )
    {
        
i_Val c_Letter 'a'
        
if( <= i_Val sizeof i_SnipersIds ) )
        {
            
gi_Flags |= ( << ( i_SnipersIdsi_Val ] ) ); // --| Connor's idea after reading read_flags() source code.
        
}
    }

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 10-20-2008 at 01:10.
ConnorMcLeod is offline
MEN
Junior Member
Join Date: Nov 2007
Old 10-29-2008 , 22:43   Re: All Snipers Crosshair
Reply With Quote #19

You could make when not to shoot Crosshair disappears, to start to shoot it again appears, and when zooming it too should disappear.
MEN is offline
1sland
BANNED
Join Date: Nov 2008
Location: Who cares
Old 12-04-2008 , 16:29   Re: All Snipers Crosshair
Reply With Quote #20

why this crosshair doesnt dissapear when zooom???? fix it pls somebody pls....
1sland is offline
Send a message via ICQ to 1sland Send a message via Skype™ to 1sland
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode