Raised This Month: $ Target: $400
 0% 

Plugin request: Autoreload


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Glist3r
Senior Member
Join Date: Feb 2008
Old 09-02-2009 , 07:10   Plugin request: Autoreload
Reply With Quote #1

Is there any plugin that autoreloads your gun after you kill someone?
I saw it on a server but I can't remember it anymore, and I don't know the name neither.
__________________
Help me with these requests, please!
http://forums.alliedmods.net/showthread.php?t=85287

Glist3r is offline
xjavo
Member
Join Date: Sep 2005
Old 09-02-2009 , 07:25   Re: Plugin request: Autoreload
Reply With Quote #2

http://forums.alliedmods.net/showthr...ght=autoreload, Using search might help you more then posting a thread , Im not sure if this is it or not however but it seems like it is what you're requesting.
xjavo is offline
Send a message via AIM to xjavo Send a message via MSN to xjavo Send a message via Yahoo to xjavo
Glist3r
Senior Member
Join Date: Feb 2008
Old 09-02-2009 , 07:53   Re: Plugin request: Autoreload
Reply With Quote #3

I found that but I'm not sure it does what I've requested.

I'll try it!

LE: That one only reloads when you have 0 bullets.
__________________
Help me with these requests, please!
http://forums.alliedmods.net/showthread.php?t=85287


Last edited by Glist3r; 09-02-2009 at 08:24.
Glist3r is offline
xjavo
Member
Join Date: Sep 2005
Old 09-02-2009 , 09:23   Re: Plugin request: Autoreload
Reply With Quote #4

I thought that's what you wanted was a autoreload it would be pointless if you had 15/25 and it reloaded.



Unless im not getting what you're saying.

Last edited by xjavo; 09-02-2009 at 09:35.
xjavo is offline
Send a message via AIM to xjavo Send a message via MSN to xjavo Send a message via Yahoo to xjavo
Glist3r
Senior Member
Join Date: Feb 2008
Old 09-02-2009 , 09:45   Re: Plugin request: Autoreload
Reply With Quote #5

Quote:
Originally Posted by xjavo View Post
I thought that's what you wanted was a autoreload it would be pointless if you had 15/25 and it reloaded.



Unless im not getting what you're saying.
I didn't said that if you have 15/30 to reload. It should reload only if you killed someone !
__________________
Help me with these requests, please!
http://forums.alliedmods.net/showthread.php?t=85287

Glist3r is offline
pirvu
Senior Member
Join Date: Apr 2009
Location: Here and There [ro]
Old 09-02-2009 , 10:08   Re: Plugin request: Autoreload
Reply With Quote #6

From what he says i understand 2 things
1. Either when you kill a person you get full ammo ..
Example : 15 bullets --> after you kill some1 instantly you get 30 bullets

2. Either when you kill some1 it you will reload your weapon ( 5 seconds ,etc)

So after you kill some in console you will have +reload :-?

So witch one is it ?
__________________
Http://pirvu.mybrute.com <- Try my BRUTE! If you dare!
pirvu is offline
Send a message via Yahoo to pirvu Send a message via Skype™ to pirvu
Glist3r
Senior Member
Join Date: Feb 2008
Old 09-02-2009 , 11:04   Re: Plugin request: Autoreload
Reply With Quote #7

1st one
__________________
Help me with these requests, please!
http://forums.alliedmods.net/showthread.php?t=85287

Glist3r is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-02-2009 , 11:39   Re: Plugin request: Autoreload
Reply With Quote #8

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

enum AmmoTypes
{
    
AMMO_CLIP,
    
AMMO_BACKPACK
};

new const 
g_iWeaponAmmo[ ][ AmmoTypes ] =
{
    { 
0}, // NULL
    
1352 },
    { 
0}, // SHIELD
    
1090 },
    { 
01} ,
    { 
732 },
    { 
0}, // C4
    
30100 },
    { 
3090 },
    { 
0},
    { 
30120 },
    { 
20100 },
    { 
25100 },
    { 
3090 },
    { 
3590 },
    { 
2590 },
    { 
12100 },
    { 
20120 },
    { 
1030 },
    { 
30120 },
    { 
100200 },
    { 
832 },
    { 
3090 },
    { 
30120 },
    { 
2090 },
    { 
0},
    { 
735 },
    { 
3090 },
    { 
3090 },
    { 
0}, // KNIFE
    
50100 }
};

new 
g_iMaxPlayers;

public 
plugin_init( )
{
    
register_plugin"Ammo From Kill""0.1""Exolent" );
    
    
register_event"DeathMsg""EventDeathMsg""a" );
    
    
g_iMaxPlayers get_maxplayers( );
}

public 
EventDeathMsg( )
{
    new 
iKiller read_data);
    if( !( 
<= iKiller <= g_iMaxPlayers )
    || !
is_user_aliveiKiller ) )
    {
        return;
    }
    
    new 
iVictim read_data);
    if( 
iVictim == iKiller
    
|| cs_get_user_teamiVictim ) == cs_get_user_teamiKiller ) )
    {
        return;
    }
    
    static 
szWeaponName32 ];
    
read_data4szWeaponName31 );
    
    if( 
equalszWeaponName"grenade" ) )
    {
        return;
    }
    
    new 
iWeaponId get_user_weaponiKiller );
    if( !( 
<= iWeaponId sizeofg_iWeaponAmmo ) )
    || ( 
<< iWeaponId ) & ( ( << ) | ( << CSW_C4 ) | ( << CSW_KNIFE ) ) )
    {
        return;
    }
    
    
get_weaponnameiWeaponIdszWeaponName31 );
    
    new 
iWeaponEntity find_ent_by_owner( -1szWeaponNameiKiller );
    if( 
is_valid_entiWeaponEntity ) )
    {
        
cs_set_weapon_ammoiWeaponEntityg_iWeaponAmmoiWeaponId ][ AMMO_CLIP ] );
    }
    
    
cs_set_user_bpammoiKilleriWeaponIdg_iWeaponAmmoiWeaponId ][ AMMO_BACKPACK ] );

__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 09-02-2009 at 12:21.
Exolent[jNr] is offline
silentt
Member
Join Date: Feb 2006
Location: Toronto, Ontario, Canada
Old 09-02-2009 , 11:43   Re: Plugin request: Autoreload
Reply With Quote #9

hehe nice job xolent but from what he said I think he just wants it to reload the players ammo(same as if they pressed r) But if that is what you were planning on doing then you may want to use xolents because what if you had 3 guys coming at you and you kill one... then it starts reloading and your dead
silentt is offline
Glist3r
Senior Member
Join Date: Feb 2008
Old 09-02-2009 , 11:47   Re: Plugin request: Autoreload
Reply With Quote #10

I just wanted to have again full ammo after you kill someone, no reload, just full ammo to shoot continuous.

Does your plugin does that Exolent[jNr] ?
__________________
Help me with these requests, please!
http://forums.alliedmods.net/showthread.php?t=85287

Glist3r is offline
Reply



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 08:18.


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