Raised This Month: $ Target: $400
 0% 

knife skin only for admins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
elitecs
Junior Member
Join Date: Jun 2014
Old 11-28-2015 , 11:28   knife skin only for admins
Reply With Quote #1

can somebody make a plugin who replace the original knife with a skin?

when i write on chat for example /new to appear a menu with the knife (only 1 skin) and only for VIP flag
elitecs is offline
thaloub
Junior Member
Join Date: Nov 2015
Location: Algeria,Batna
Old 11-30-2015 , 17:52   Re: knife skin only for admins
Reply With Quote #2

This is it what you need.

This just an example if you want more knifes message me .
If he dosent work message me .

Source Code:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <12_janus9>

#define VIP_FLAGS ADMIN_LEVEL_H

new Plugin[] = "Knife Admin-elitecs"
new Version[] = "1.0"
new Author[] = "thaloub"

public plugin_init() 
{
    
register_plugin(PluginVersionAuthor)
    
register_clcmd("say /new""menu_cmd")
}

public 
menu_cmd(id
{
    new 
menu menu_create("Knife-M""menu_handler")
    
menu_additem(menu"Janus-9 [VIP] ""1")
    
    
menu_setprop(menuMPROP_EXITNAME"Exit")
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)
    
    
menu_display(idmenu0)
}

public 
menu_handler(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    
    new 
data[6], iName[64]
    new 
accesscallback
    menu_item_getinfo
(menuitemaccessdata,5iName63callback)
    
    new 
key str_to_num(data)
    
    switch(
key)
    {
        case 
1
        {
            if(
get_user_flags(id) & VIP_FLAGS)
            {
                
get_janus9(id)
            }else 
            
client_print(idprint_chat"You are Not VIP!.")
        }
        
    }

The plugin with the source code(full):
Attached Files
File Type: zip plugin_km.zip (681.7 KB, 50 views)

Last edited by thaloub; 11-30-2015 at 17:59.
thaloub is offline
elitecs
Junior Member
Join Date: Jun 2014
Old 12-01-2015 , 17:22   Re: knife skin only for admins
Reply With Quote #3

thank you dude
elitecs is offline
Reply


Thread Tools
Display Modes

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 08:07.


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