Raised This Month: $ Target: $400
 0% 

Best way to block vehicle kills


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 07-31-2014 , 21:41   Re: Best way to block vehicle kills
Reply With Quote #9

Quote:
Originally Posted by Flick3rR View Post
Just like this? And that's all? :O
PHP Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init()
{
    
register_plugin("No Vehicle Kills""1.0""Flicker")
    
    new 
ent FM_NULLENT
    
    
    
while((ent engfunc(EngFunc_FindEntityByStringent"classname""func_vehicle")))
        
set_pev(entpev_dmg0)

You should have tested it before posting here, but yes, that should be it, only if I haven't mistaken damage amount field, but since it says the key is "dmg" in VHE keyvalue, I guess it is pev_dmg indeed. I know for sure that pev_impulse is max speed(can be found in HLSDK).

Last edited by klippy; 07-31-2014 at 22:05.
klippy 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 13:10.


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