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

hey im needing a kill plus plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
conn
Member
Join Date: Dec 2013
Old 12-25-2017 , 23:58   hey im needing a kill plus plugin
Reply With Quote #1

i want a plugin that when an admin kills a normal player the admin gets 2 frags instead of 1 i searched and i found this code but it simply doesnt work on my server

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

#define PLUGIN ""
#define VERSION "1.0"
#define AUTHOR ""

new Frags[33]

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

public 
Ham_PlayerKilled(victimattacker)
{
    if(
get_user_flags(attacker) & ADMIN_DANIEL// ADMIN o como quieras ponerle al flag
    
{
        
Frags[attacker] += // Según como lotengas tu en tu plugin
        
client_print(attackerprint_chat"")
    }  
 
    
Frags[attacker] += // Si es normal solo 1
    
client_print(attackerprint_chat"")

conn is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 12-26-2017 , 02:20   Re: hey im needing a kill plus plugin
Reply With Quote #2

Quote:
Originally Posted by conn View Post
i want a plugin that when an admin kills a normal player the admin gets 2 frags instead of 1 i searched and i found this code but it simply doesnt work on my server

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

#define PLUGIN ""
#define VERSION "1.0"
#define AUTHOR ""

new Frags[33]

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

public 
Ham_PlayerKilled(victimattacker)
{
    if(
get_user_flags(attacker) & ADMIN_DANIEL// ADMIN o como quieras ponerle al flag
    
{
        
Frags[attacker] += // Según como lotengas tu en tu plugin
        
client_print(attackerprint_chat"")
    }  
 
    
Frags[attacker] += // Si es normal solo 1
    
client_print(attackerprint_chat"")

if(get_user_flags(attacker) & ADMIN_DANIEL)???????
ADMIN_DANIEL?

maybe change it to ADMIN_KICK, or ADMIN_BAN...

here are the list with Admin Level Constants - AMXX

PHP Code:
#define ADMIN_ALL        0    //Everyone
#define ADMIN_IMMUNITY        1    //Flag "a", immunity
#define ADMIN_RESERVATION    2    //Flag "b", reservation
#define ADMIN_KICK        4    //Flag "c", kick
#define ADMIN_BAN        8    //Flag "d", ban
#define ADMIN_SLAY        16    //Flag "e", slay
#define ADMIN_MAP        32    //Flag "f", map change
#define ADMIN_CVAR        64    //Flag "g", cvar change
#define ADMIN_CFG        128    //Flag "h", config execution
#define ADMIN_CHAT        256    //Flag "i", chat
#define ADMIN_VOTE        512    //Flag "j", vote
#define ADMIN_PASSWORD        1024    //Flag "k", sv_password
#define ADMIN_RCON        2048    //Flag "l", rcon access
#define ADMIN_LEVEL_A        4096    //Flag "m", custom
#define ADMIN_LEVEL_B        8192    //Flag "n", custom
#define ADMIN_LEVEL_C        16384    //Flag "o", custom
#define ADMIN_LEVEL_D        32768    //Flag "p", custom
#define ADMIN_LEVEL_E        65536    //Flag "q", custom
#define ADMIN_LEVEL_F        131072    //Flag "r", custom
#define ADMIN_LEVEL_G        262144    //Flag "s", custom
#define ADMIN_LEVEL_H        524288    //Flag "t", custom
#define ADMIN_MENU        1048576    //Flag "u", menus
#define ADMIN_ADMIN        16777216    //Flag "y", default admin
#define ADMIN_USER        33554432    //Flag "z", default user
#define FLAG_KICK        1    //Auth flag "a", kick if no auth
#define FLAG_TAG        2    //Auth flag "b", auth by tag
#define FLAG_AUTHID        4    //Auth flag "c", auth by WON/Steam ID
#define FLAG_IP            8    //Auth flag "d", auth by IP address
#define FLAG_NOPASS        16    //Auth flag "e", don't require password 
tarsisd2 is offline
conn
Member
Join Date: Dec 2013
Old 12-26-2017 , 14:08   Re: hey im needing a kill plus plugin
Reply With Quote #3

Quote:
Originally Posted by tarsisd2 View Post
if(get_user_flags(attacker) & ADMIN_DANIEL)???????
ADMIN_DANIEL?

maybe change it to ADMIN_KICK, or ADMIN_BAN...

here are the list with Admin Level Constants - AMXX

PHP Code:
#define ADMIN_ALL        0    //Everyone
#define ADMIN_IMMUNITY        1    //Flag "a", immunity
#define ADMIN_RESERVATION    2    //Flag "b", reservation
#define ADMIN_KICK        4    //Flag "c", kick
#define ADMIN_BAN        8    //Flag "d", ban
#define ADMIN_SLAY        16    //Flag "e", slay
#define ADMIN_MAP        32    //Flag "f", map change
#define ADMIN_CVAR        64    //Flag "g", cvar change
#define ADMIN_CFG        128    //Flag "h", config execution
#define ADMIN_CHAT        256    //Flag "i", chat
#define ADMIN_VOTE        512    //Flag "j", vote
#define ADMIN_PASSWORD        1024    //Flag "k", sv_password
#define ADMIN_RCON        2048    //Flag "l", rcon access
#define ADMIN_LEVEL_A        4096    //Flag "m", custom
#define ADMIN_LEVEL_B        8192    //Flag "n", custom
#define ADMIN_LEVEL_C        16384    //Flag "o", custom
#define ADMIN_LEVEL_D        32768    //Flag "p", custom
#define ADMIN_LEVEL_E        65536    //Flag "q", custom
#define ADMIN_LEVEL_F        131072    //Flag "r", custom
#define ADMIN_LEVEL_G        262144    //Flag "s", custom
#define ADMIN_LEVEL_H        524288    //Flag "t", custom
#define ADMIN_MENU        1048576    //Flag "u", menus
#define ADMIN_ADMIN        16777216    //Flag "y", default admin
#define ADMIN_USER        33554432    //Flag "z", default user
#define FLAG_KICK        1    //Auth flag "a", kick if no auth
#define FLAG_TAG        2    //Auth flag "b", auth by tag
#define FLAG_AUTHID        4    //Auth flag "c", auth by WON/Steam ID
#define FLAG_IP            8    //Auth flag "d", auth by IP address
#define FLAG_NOPASS        16    //Auth flag "e", don't require password 

i just created a new flag my dude and it works perfectly with another plugins my dude.
conn is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 12-26-2017 , 14:42   Re: hey im needing a kill plus plugin
Reply With Quote #4

mate wtf is that code, just use set_user_fags(id, get_user_frags(id) += 1)
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
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 14:57.


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