AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [HELP] Only Kevlar+Helmet On Each Respawn (https://forums.alliedmods.net/showthread.php?t=270119)

T0FF 08-15-2015 10:32

[HELP] Only Kevlar+Helmet On Each Respawn
 
I have blocked rebuy/autobuy on my cs 1.6 server for some reason,
but i want all players to have Kevlar+Helmet on each spawn automatically,
Like that they don't need to buy it.

Is there any plugin for this? Or can it be made?

Evilish 08-17-2015 06:19

Re: [HELP] Only Kevlar+Helmet On Each Respawn
 
This should do the job.

PHP Code:

#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

public plugin_init() 
{
    
register_plugin"Kevlar and Helmet on Spawn""1.0""Evilish" )
    
RegisterHamHam_Spawn"player""Ham_PlayerSpawn")
}

public 
Ham_PlayerSpawnid )
{
    if( 
is_user_aliveid ) )
    {
        
cs_set_user_armorid100CS_ARMOR_VESTHELM )
    }



T0FF 08-17-2015 06:48

Re: [HELP] Only Kevlar+Helmet On Each Respawn
 
Quote:

Originally Posted by Evilish (Post 2334019)
This should do the job.

PHP Code:

#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

public plugin_init() 
{
    
register_plugin"Kevlar and Helmet on Spawn""1.0""Evilish" )
    
RegisterHamHam_Spawn"player""Ham_PlayerSpawn")
}

public 
Ham_PlayerSpawnid )
{
    if( 
is_user_aliveid ) )
    {
        
cs_set_user_armorid100CS_ARMOR_VESTHELM )
    }



Works, thank you.


All times are GMT -4. The time now is 07:26.

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