View Single Post
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 07-31-2014 , 20:50   Re: Best way to block vehicle kills
Reply With Quote #8

Quote:
Originally Posted by KliPPy View Post
Just check for every "func_vehicle" in plugin_init() and set theirs pev_dmg to 0, that's all to it.
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)

__________________

Last edited by Flick3rR; 07-31-2014 at 20:54.
Flick3rR is offline
Send a message via Skype™ to Flick3rR