Raised This Month: $ Target: $400
 0% 

Disable fast moving with things


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 12-27-2007 , 13:08   Re: Disable fast moving with things
Reply With Quote #3

The box or object you kan move is tied whit an ent(func_pushable)
we culd easly remove the hole move able object but dont know what to do if you want to keep it.

engine
Code:
 
* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <engine>
new P_move 
public plugin_init() {
register_plugin("nomove", "0.1", "fxfighter")
P_move = register_cvar( "amxx_nomoveable", "1" )
nomove()
}
public nomove()
{
if(!get_pcvar_num(P_move))
{
return PLUGIN_HANDLED
}
 
new ent = -1
while((ent = find_ent_by_class(ent,"func_pushable")) != 0){
remove_entity(ent)
}
return PLUGIN_CONTINUE
}

Last edited by fxfighter; 12-27-2007 at 13:17.
fxfighter is offline
Send a message via MSN to fxfighter
 



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 11:03.


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