Raised This Month: $ Target: $400
 0% 

[HELP] Only Kevlar+Helmet On Each Respawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
T0FF
Member
Join Date: Oct 2014
Location: Asia
Old 08-15-2015 , 10:32   [HELP] Only Kevlar+Helmet On Each Respawn
Reply With Quote #1

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?

Last edited by T0FF; 08-16-2015 at 07:45.
T0FF is offline
Evilish
Junior Member
Join Date: Jul 2013
Old 08-17-2015 , 06:19   Re: [HELP] Only Kevlar+Helmet On Each Respawn
Reply With Quote #2

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 )
    }

Evilish is offline
T0FF
Member
Join Date: Oct 2014
Location: Asia
Old 08-17-2015 , 06:48   Re: [HELP] Only Kevlar+Helmet On Each Respawn
Reply With Quote #3

Quote:
Originally Posted by Evilish View Post
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.
T0FF 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 06:55.


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