Raised This Month: $ Target: $400
 0% 

[REQ] No pistol at roundstart, new round and respawn


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 01-13-2018 , 06:40   Re: [REQ] No pistol at roundstart, new round and respawn
Reply With Quote #3

Here's a lazy common way:
PHP Code:
#include <amxmodx>
#include <fun>
#include <hamsandwich>

#pragma semicolon true

public plugin_init()
{
    
register_plugin("PLUGIN""VERSION""AUTHOR");
    
    
RegisterHam(Ham_Spawn"player""@Player_Spawn"true);
}

@
Player_Spawn(this)
{
    if(!
is_user_alive(this))
    {
        return 
HAM_IGNORED;
    }
    
    
strip_user_weapons(this);
    
give_item(this"weapon_knife");
    
    return 
HAM_IGNORED;

__________________
klippy is offline
 


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 02:01.


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