Raised This Month: $51 Target: $400
 12% 

Remove weapons on respawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ninja uwu
Member
Join Date: Oct 2020
Old 11-11-2020 , 13:20   Remove weapons on respawn
Reply With Quote #1

Hey its me another time, sorry for the flood, but im alone and i want help, i want to remove weapons of last round when players respawn in next round,
example: u buy awp and deagle on round 1
In round 2 u have only deagle and knife and nades, but no awp
Ninja uwu is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 11-11-2020 , 21:08   Re: Remove weapons on respawn
Reply With Quote #2

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

#define PLUGIN  "New Plug-In"
#define VERSION "1.0"
#define AUTHOR  "Author"


public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);

    
register_event("HTLV""New_Round""a""1=0""2=0");
}

public 
New_Round()
{
    new 
iPlayers[32], iNum;
    
get_players(iPlayersiNum"a");
    for(new 
iPlayer0iNumi++)
    {
        
iPlayer iPlayers[i];
        
strip_user_weapons(iPlayer)
        
give_item(iPlayer"weapon_deagle")
        
give_item(iPlayer"weapon_knife")
        
give_item(iPlayer"weapon_flashbang")
        
give_item(iPlayer"weapon_smokegrenade")
        
give_item(iPlayer"weapon_hegrenade")
    }
 

__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
Ninja uwu
Member
Join Date: Oct 2020
Old 11-12-2020 , 09:08   Re: Remove weapons on respawn
Reply With Quote #3

Quote:
Originally Posted by Supremache View Post
PHP Code:
#include <amxmodx>
#include <fun>

#define PLUGIN  "New Plug-In"
#define VERSION "1.0"
#define AUTHOR  "Author"


public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);

    
register_event("HTLV""New_Round""a""1=0""2=0");
}

public 
New_Round()
{
    new 
iPlayers[32], iNum;
    
get_players(iPlayersiNum"a");
    for(new 
iPlayer0iNumi++)
    {
        
iPlayer iPlayers[i];
        
strip_user_weapons(iPlayer)
        
give_item(iPlayer"weapon_deagle")
        
give_item(iPlayer"weapon_knife")
        
give_item(iPlayer"weapon_flashbang")
        
give_item(iPlayer"weapon_smokegrenade")
        
give_item(iPlayer"weapon_hegrenade")
    }
 

Thx, i will try how its working <3
Ninja uwu 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:24.


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