Raised This Month: $ Target: $400
 0% 

Best way to block vehicle kills


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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