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

[Help] Block Change Model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 03-24-2015 , 14:54   [Help] Block Change Model
Reply With Quote #1

hi

i have a server runnig Jailbreak ExD 19.0 by -=Rock=-
players can use the cmd:

PHP Code:
model X 
and their model will change to X
also other players can see new model too!!!! lol

how to block this?
(i dont have source code i just have .amxx file )
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP






Last edited by New.ZM.Life; 03-24-2015 at 14:56.
New.ZM.Life is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 03-24-2015 , 15:24   Re: [Help] Block Change Model
Reply With Quote #2

That shouldn't work in a steam-only updated server.
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
monster321
Member
Join Date: Apr 2012
Old 03-24-2015 , 17:46   Re: [Help] Block Change Model
Reply With Quote #3

Try using task...

Include:
Code:
#include < hamsandwich >

#Task
Code:
#define TASK_MODELS 1000

Add in Init this:

Code:
RegisterHam( Ham_Spawn, "player", "HamSpawnPlayer", 1 )

And in this func:

Code:
public HamSpawnPlayer( id ) {     if( !is_user_connected( id ) )         return HAM_IGNORED;         if( !task_exists( id + TASK_MODELS ) )         set_task( 1.0, "check_models", id + TASK_MODELS )         return HAM_IGNORED; }

And this:

Code:
public check_models( id ) {     id -= TASK_MODELS;         new szModel[ 32 ];     get_user_info( id, "model", szModel, 31 )         if( equal( szModel, "modelname" ) )         set_user_info( id, "model", "modelname" )         set_task( 0.1, "check_models", id + TASK_MODELS ) }

Last edited by monster321; 03-24-2015 at 22:40.
monster321 is offline
Send a message via MSN to monster321 Send a message via Skype™ to monster321
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 03-24-2015 , 19:23   Re: [Help] Block Change Model
Reply With Quote #4

sry,but what is modelname ?
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP





New.ZM.Life is offline
monster321
Member
Join Date: Apr 2012
Old 03-24-2015 , 22:39   Re: [Help] Block Change Model
Reply With Quote #5

..... example:

Code:
"models/player/potato/potato.mdl"

"potato" is the model name.
monster321 is offline
Send a message via MSN to monster321 Send a message via Skype™ to monster321
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 09:02.


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