Raised This Month: $ Target: $400
 0% 

[req] block spec spawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 06-09-2016 , 17:40   [req] block spec spawn
Reply With Quote #1

The modification is an automatic spawner

What I need the mod to do: Not to revive people that are in spec.

code:

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

#define PLUGIN "Instant Respawn"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.1"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_Killed"player""Player_Killed")
}

public 
Player_Killed(id)
{
    
ExecuteHamB(Ham_Spawnid)
    return 
HAM_SUPERCEDE

Thanks in advance!
sigerman is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 06-09-2016 , 17:50   Re: [req] block spec spawn
Reply With Quote #2

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

#define PLUGIN "Instant Respawn"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.1"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_Killed"player""Player_Killed")
}

public 
Player_Killed(id)
{
    if(
cs_get_user_team(id) != CS_TEAM_SPECTATOR)
    {
        
ExecuteHamB(Ham_Spawnid)
        return 
HAM_SUPERCEDE
    
}
    return 
HAM_IGNORED

__________________
JusTGo is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 06-09-2016 , 18:00   Re: [req] block spec spawn
Reply With Quote #3

amx_screenshot problems ?
siriusmd99 is offline
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 06-15-2016 , 00:45   Re: [req] block spec spawn
Reply With Quote #4

Worked, thanks
sigerman 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 13:18.


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