Raised This Month: $32 Target: $400
 8% 

Block "Model"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yRestrict
BANNED
Join Date: Apr 2019
Old 02-07-2020 , 10:07   Block "Model"
Reply With Quote #1

some players are getting bug "MODEL" on my server
it is possible to block this command on the console
yRestrict is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 02-07-2020 , 10:44   Re: Block "Model"
Reply With Quote #2

Which bug are you referring to?
And no, you can't directly block the command, but there may be things you can do depending on what the problem is.
__________________
HamletEagle is offline
yRestrict
BANNED
Join Date: Apr 2019
Old 02-07-2020 , 14:17   Re: Block "Model"
Reply With Quote #3

on my server there is a player that goes on the console type "model police" and change the model even though it is not admin
I wanted to block this command
yRestrict is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 02-07-2020 , 14:39   Re: Block "Model"
Reply With Quote #4

Are you even reading? The command can not be blocked. Post the plugin that you are using to change models.
__________________
HamletEagle is offline
yRestrict
BANNED
Join Date: Apr 2019
Old 02-07-2020 , 15:54   Re: Bloqueie "Modelo"
Reply With Quote #5

Quote:
Originally Posted by HamletEagle View Post
Are you even reading? The command can not be blocked. Post the plugin that you are using to change models.
I do not have sma of the plugin, because it is to add skins and go skins.ini that everything is there

but I used this plugin here before

PHP Code:
#pragma semicolon 1
#pragma compress 1
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <cstrike>

#define PLUGIN "admin model"
#define VERSION "1.0"
#define AUTHOR "LKING01"

new bool:model_select[33];

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
register_clcmd("say /admin""admin");
    
register_event("ResetHUD""resetModel""b");
}
public 
client_putinserver(id)
    if(!
is_user_bot(id)) model_select[id] = false;

public 
client_disconnected(id)
    if(!
is_user_bot(id)) model_select[id] = false;

public 
plugin_precache() 
{
    
precache_model("models/player/joke/joke.mdl");
    
precache_model("models/player/urban_ct/urban_ct.mdl");
    
precache_model("models/player/guerilla_tr/guerilla_tr.mdl");
    
precache_model("models/player/neo/neo.mdl");
    
//precache_model("models/player/TR_01/TR_01.mdl");
    //precache_model("models/player/screeam/screeam.mdl");
    //precache_model("models/player/star_lord_tr/star_lord_tr.mdl");
    //precache_model("models/player/star_lord_ct/star_lord_ct.mdl");
}

public 
admin(id)
{
    if (
get_user_flags(id) & ADMIN_LEVEL_Hmodel_menu(id);
    else 
client_print_color(idprint_team_default"^3[^4Flag Hunters^3] ^1Somente para admin!");
}

public 
model_menu(id)
{
    if (!
is_user_connected(id))
        return 
PLUGIN_HANDLED;

    new 
menu menu_create("\r[\wMENU DE PLAYER MODELS\r]\r""player_models");
    new 
CsTeams:team cs_get_user_team(id);
    switch (
team)
    {
        case 
CS_TEAM_T:
        {
            
menu_additem(menu"\wJoke \r[\yADMIN\r][\yTR\r]""1");
            
menu_additem(menu"\wGuerilla \r[\yADMIN\r][\yTR\r]""2");
            
menu_additem(menu"\wVovo \r[\yADMIN\r][\yTR\r]""3");
            
//menu_additem(menu, "\wStar lord \r[\yADMIN\r][\yTR\r]", "4");
        
}
        case 
CS_TEAM_CT:
        {
            
menu_additem(menu"\wSmith \r[\yADMIN\r][\yCT\r]""5");
            
menu_additem(menu"\wNeo \r[\yADMIN\r][\yCT\r]""6");
            
menu_additem(menu"\wHalo \r[\yADMIN\r][\yCT\r]""7");
            
//menu_additem(menu, "\wStar lord \r[\yADMIN\r][\yCT\r]", "8");
        
}
        default: return 
PLUGIN_HANDLED;
    }
    
set_pdata_int(id2050);
    
menu_setprop(menuMPROP_EXITNAME"Sair");
    
menu_display(idmenu);

    return 
PLUGIN_CONTINUE;
}

public 
player_models(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)
    {  
// TR
        
case :
        {
            
cs_set_user_model(id"joke");
            
model_select[id] = true;
        }
        case 

        {
            
cs_set_user_model(id"guerilla_tr");
            
model_select[id] = true;
        }
        case 
:
        {
            
cs_set_user_model(id"TR_01");
            
model_select[id] = true;
        }
        case 

        {
            
cs_set_user_model(id"star_lord_tr");
            
model_select[id] = true;
        }
        
// CT
        
case :
        {
            
cs_set_user_model(id"urban_ct");
            
model_select[id] = false;
        }
        case 

        {
            
cs_set_user_model(id"neo");
            
model_select[id] = false;
        }
        case 
:
        {
            
cs_set_user_model(id"screeam");
            
model_select[id] = false;
        }
        case 

        {
            
cs_set_user_model(id"star_lord_ct");
            
model_select[id] = false;
        }
    }

    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;
}

public 
resetModel(idlevelcid)
{
    if (
get_user_flags(id) & ADMIN_LEVEL_H
    {
        new 
CsTeams:userTeam cs_get_user_team(id);

        if(
model_select[id] && userTeam == CS_TEAM_CT)
            
cs_reset_user_model(id);
        else if(!
model_select[id] && userTeam == CS_TEAM_T)
            
cs_reset_user_model(id);
    }

yRestrict 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 15:56.


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