Thread: (Request help)
View Single Post
SHIELD755
Veteran Member
Join Date: Feb 2018
Location: FROM MARVEL STUDIO
Old 08-01-2019 , 06:41   Re: (Request help)
Reply With Quote #3

i does not know whether it will work or not

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

public plugin_init() { 
    
register_plugin("Admin Spec GodMode""1.0""decak"
    
register_clcmd("say /spec""Aspecc"
    
register_clcmd("say /aspec""Aspecc"
    
RegisterHam(Ham_TakeDamage"player""dmgg"


public 
Aspecc(id) { 
    if(
has_flag(id,"y")) 
    { 
    if(!(
is_user_alive(id))) 
    
ExecuteHamB(Ham_CS_RoundRespawnid
    
cs_set_user_team(idCS_TEAM_SPECTATOR); 
    } 
    return 
PLUGIN_HANDLED


public 
dmgg(vicattinfFloat:dmdmbt) { 
    new 
CsTeams:tim cs_get_user_team(vic); 
    if(
has_flag(vic,"y") && tim == CS_TEAM_SPECTATOR
        return 
HAM_SUPERCEDE
    return 
HAM_IGNORED

__________________
SED LYF !!!
SHIELD755 is offline