Raised This Month: $ Target: $400
 0% 

vip/admin models


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
baly222
Junior Member
Join Date: Jun 2020
Old 06-03-2020 , 05:26   vip/admin models
Reply With Quote #1

hi, can someone help me with this plugin ? its admin or vip models but I don't want it allowed to be used in both teams .

for example:
Te: Asasin , Iron , Joker, dobby
CT: Death , sonic, Skeleton



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


#define PLUGIN "Admin Model Menu"
#define VERSION "1.0"
#define AUTHOR "Dimision"
#define ADMIN_LEVEL_Q    ADMIN_LEVEL_C

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /admodels""admin")
}

public 
plugin_precache() 
{
        
precache_model("models/player/Asasin/Asasin.mdl")
        
precache_model("models/player/Death/Death.mdl")
        
precache_model("models/player/Dobby/Dobby.mdl")
        
precache_model("models/player/Sonic/Sonic.mdl")
        
precache_model("models/player/Skeleton/Skeleton.mdl")
        
precache_model("models/player/Joker/Joker.mdl")
        
precache_model("models/player/Iron/Iron.mdl")
}
        
public 
admin(id)
{
    if (
get_user_flags(id) & ADMIN_LEVEL_H)
        {
            
model_menu(id)
        }
        else
        {
               
ChatColor(id"!g>> !nAceste modele sunt doar pentru !gAdmini !n!")
        }
    
}
public 
model_menu(id)
{
    new 
menu menu_create("\r[\wAdmin Models\r]\r""menu_wybierz")
    
    
menu_additem(menu"\wAsasin""1"0)
    
menu_additem(menu"\wDeath""2"0)
    
menu_additem(menu"\wDobby""3"0)
    
menu_additem(menu"\wSonic""4"0)
    
menu_additem(menu"\wSkeleton""5"0)
    
menu_additem(menu"\wJoker""6"0)
    
menu_additem(menu"\wIron""7"0)

    
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)
    
    
menu_display(idmenu0)
}

public 
menu_wybierz(idmenuitem)
{
    if (
item == MENU_EXIT)
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    new 
data[6], iName[64]
    new 
accescallback
    menu_item_getinfo
(menuitemaccesdata,5iName63callback)
    
    new 
key str_to_num(data)
    
    switch(
key)
    { 
       case 
cs_set_user_model(id"Asasin")
       case 
cs_set_user_model(id"Death")
       case 
cs_set_user_model(id"Dobby")
       case 
cs_set_user_model(id"Sonic")
       case 
cs_set_user_model(id"Skeleton")
       case 
cs_set_user_model(id"Joker")
       case 
cs_set_user_model(id"Iron")
    }
    
menu_destroy(menu)
    return 
PLUGIN_HANDLED
}  
stock ChatColor(const id, const input[], any:...) {
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
    
    
replace_all(msg190"!g""^4"); // verde
    
replace_all(msg190"!n""^1"); // galben/alb/negru
    
replace_all(msg190"!t""^3"); // rosu/albastru/gri
    
replace_all(msg190"!t2""^0"); // rosu2/albastru2/gri2
    
    
if (idplayers[0] = id; else get_players(playerscount"ch");
    {
        for (new 
0counti++)
            {
            if (
is_user_connected(players[i]))
                {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i]);
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    }


Last edited by baly222; 06-03-2020 at 05:36.
baly222 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:08.


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