View Single Post
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 03-01-2020 , 04:46   Re: Deathrun Mod [Core + Modes]
Reply With Quote #49

Sorry I didn't understand the help Xalus

I've found this request https://forums.alliedmods.net/showthread.php?t=182372 and It's pretty easy to change It to usp mode, maybe helpful to someone else

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

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

public 
PlayerSpawniPlayer )
{
    if ( 
is_user_alive iPlayer ) )
    {
        switch ( 
get_user_teamiPlayer ) )
        {
            case 
1:
            {
                
strip_user_weaponsiPlayer );
                
give_itemiPlayer"weapon_knife" );
            }
            case 
2:
            {
                
strip_user_weaponsiPlayer );
                
give_itemiPlayer"weapon_knife" );
                
                
cs_set_user_bpammoiPlayerCSW_USP90 );
                
give_itemiPlayer"weapon_usp" );
            }
        }
    }


Last edited by sigerman; 03-01-2020 at 04:47. Reason: Editing the ammo to default values (90)
sigerman is offline