Raised This Month: $51 Target: $400
 12% 

(Request help)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
newstartnewbegin2
Junior Member
Join Date: Jul 2019
Old 07-31-2019 , 22:22   (Request help)
Reply With Quote #1

can someone make this for flag "Y"

PHP Code:
#include <amxmodx>
#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(
get_user_flags(id) & ADMIN_BAN) {
    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(
get_user_flags(vic) & ADMIN_BAN && tim == CS_TEAM_SPECTATOR)
        return 
HAM_SUPERCEDE;
    return 
HAM_IGNORED;

newstartnewbegin2 is offline
E1_531G
Senior Member
Join Date: Dec 2017
Old 07-31-2019 , 23:37   Re: (Request help)
Reply With Quote #2

Quote:
ADMIN_BAN -> ADMIN_ADMIN
__________________
My English is A0

Last edited by E1_531G; 07-31-2019 at 23:38.
E1_531G is offline
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
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 07:58.


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