Raised This Month: $ Target: $400
 0% 

(Request help)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 17:27.


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