Raised This Month: $ Target: $400
 0% 

Disable model changing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
blAck.
Member
Join Date: Jun 2018
Old 08-01-2018 , 11:39   Disable model changing
Reply With Quote #1

I have a jailbreak server and my players can change models when they type
model "model name" in console.

So I want to disable that command but I don't know how.
I tried to return PLUGIN_HANDLED on that command but that didn't worked.

Please help

Last edited by blAck.; 08-24-2018 at 18:43.
blAck. is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-01-2018 , 13:36   Re: Disable model changing
Reply With Quote #2

Search, this was asked several times before. It's also in every model changing plugin.
__________________
HamletEagle is offline
blAck.
Member
Join Date: Jun 2018
Old 08-01-2018 , 15:45   Re: Disable model changing
Reply With Quote #3

Quote:
Originally Posted by HamletEagle View Post
Search, this was asked several times before. It's also in every model changing plugin.
I searched but everything I tried just won't work...
blAck. is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-01-2018 , 15:47   Re: Disable model changing
Reply With Quote #4

Show what you tried then.
__________________
HamletEagle is offline
blAck.
Member
Join Date: Jun 2018
Old 08-01-2018 , 15:49   Re: Disable model changing
Reply With Quote #5

Quote:
Originally Posted by HamletEagle View Post
Show what you tried then.
I tried this
Code:
#include <amxmodx> #include <fakemeta> #define PLUGIN "Model Blocker" #define VERSION "0.1" #define AUTHOR "whoever" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_forward(FM_ClientUserInfoChanged, "fw_ClientUserInfoChanged") } public fw_ClientUserInfoChanged(id, buffer)     return FMRES_SUPERCEDE
And this too
Code:
#include <amxmodx> #include <fakemeta> // MercyLezZ svc_bad and models Tutorial public plugin_init()    register_forward(FM_SetClientKeyValue, "Fw_SetClientKeyValue") public Fwd_SetClientKeyValue(id, const infobuffer[], const key[]) {       if (equal(key, "model"))         return FMRES_SUPERCEDE;             return FMRES_IGNORED; }
But nothing works...

Last edited by blAck.; 08-01-2018 at 15:56.
blAck. is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-05-2018 , 17:49   Re: Disable model changing
Reply With Quote #6

Try this
PHP Code:
#include < amxmodx >
#include < fakemeta >

public plugin_init( )
register_forwardFM_ClientUserInfoChanged"@ClientUserInfoChanged" );

@
ClientUserInfoChangedid, const szBuffer[ ], const szKey[ ] )
{
    if( 
equalszKey"model" ) )
    
set_user_infoid"model""" );

    return 
FMRES_IGNORED;


Quote:
Originally Posted by D4rkSiD3Rs View Post
First, you can't block a client-side command!
You can.
__________________
edon1337 is offline
D4rkSiD3Rs
Senior Member
Join Date: Jan 2018
Location: Morocco
Old 08-05-2018 , 19:03   Re: Disable model changing
Reply With Quote #7

Quote:
Originally Posted by edon1337 View Post
You can.
so teach me how can i block it? i want to block "connect" command so players can't leave my server ^^
D4rkSiD3Rs is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-05-2018 , 19:06   Re: Disable model changing
Reply With Quote #8

Quote:
Originally Posted by D4rkSiD3Rs View Post
so teach me how can i block it? i want to block "connect" command so players can't leave my server ^^
You said client commands, not client commands that require changing client dll ^^
Also just FYI, connect is used to actually get into a server, not leave it.
__________________

Last edited by edon1337; 08-05-2018 at 19:07.
edon1337 is offline
D4rkSiD3Rs
Senior Member
Join Date: Jan 2018
Location: Morocco
Old 08-06-2018 , 07:43   Re: Disable model changing
Reply With Quote #9

Quote:
Originally Posted by edon1337 View Post
Also just FYI, connect is used to actually get into a server, not leave it.
i'm talking about players who are on my server
D4rkSiD3Rs is offline
D4rkSiD3Rs
Senior Member
Join Date: Jan 2018
Location: Morocco
Old 08-06-2018 , 07:50   Re: Disable model changing
Reply With Quote #10

Lol, so let's say how to block "disconnect" command.
D4rkSiD3Rs 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 12:48.


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