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

Remove granades at respawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rejl
New Member
Join Date: Jan 2019
Old 11-03-2019 , 10:51   Remove granades at respawn
Reply With Quote #1

I've been looking for a plugin that removes granades at respawn. Does anyone know any plugin that removes granades at respawn / spawn please send / link it down below.
rejl is offline
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 11-03-2019 , 11:39   Re: Remove granades at respawn
Reply With Quote #2

It is automatic with :
Code:
ExecuteHamB(Ham_CS_RoundRespawn , id)

how are you respawning players ?

Last edited by LearninG; 11-03-2019 at 11:42.
LearninG is offline
rejl
New Member
Join Date: Jan 2019
Old 11-03-2019 , 12:10   Re: Remove granades at respawn
Reply With Quote #3

Quote:
Originally Posted by LearninG View Post
It is automatic with :
Code:
ExecuteHamB(Ham_CS_RoundRespawn , id)

how are you respawning players ?
I mean not respawning but when the round ends everyone spawn in T or CT will lose there nades,
rejl is offline
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 11-04-2019 , 05:31   Re: Remove granades at respawn
Reply With Quote #4

test this :
Code:
#include <amxmodx> #include <cstrike> const GRENADES = ( 1 << CSW_HEGRENADE ) | ( 1 << CSW_FLASHBANG ) | (1 << CSW_SMOKEGRENADE) public plugin_init() {     register_plugin("Grenades Remover" , "1.0" , "LearninG")     register_event("HLTV", "event_new_round", "a", "1=0", "2=0") } public event_new_round() {     new players[32] , pnum , id , iWeapon     get_players(players , pnum , "ah")     for (new i; i < pnum; i++)     {         id = players[i]         new iWeapons[32] , iNum         get_user_weapons(id , iWeapons , iNum)         for (new x; x < iNum; x++)         {             iWeapon = iWeapons[x]             if( 1<< iWeapon & GRENADES)             {                 cs_set_user_bpammo(id , iWeapon , 0)             }         }     } }

Last edited by LearninG; 11-05-2019 at 22:48.
LearninG is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-05-2019 , 20:39   Re: Remove granades at respawn
Reply With Quote #5

If you only care about he grenade
PHP Code:

#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>

const OFFSET_HE_AMMO 388;
const 
XO_PLAYER 4;

public 
plugin_init()
{
    
RegisterHamHam_Spawn "player" "PlayerSpawn" );
}

public 
PlayerSpawniPlayer )
{
    if ( 
is_user_aliveiPlayer ) && ( peviPlayer pev_weapons ) & ( << CSW_HEGRENADE ) ) )
    {
        
set_pdata_intiPlayer OFFSET_HE_AMMO XO_PLAYER );
    }

__________________
Bugsy is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-06-2019 , 01:00   Re: Remove granades at respawn
Reply With Quote #6

I think he is requesting so players to be able to keep their nades after respawning.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-06-2019 , 07:49   Re: Remove granades at respawn
Reply With Quote #7

Quote:
Originally Posted by Natsheh View Post
I think he is requesting so players to be able to keep their nades after respawning.
I think he made it clear that he is looking to remove grenades. Unless he is not good at english.
__________________
Bugsy is offline
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 19:39.


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