View Single Post
OnePL
BANNED
Join Date: May 2012
Location: GB
Old 08-06-2014 , 08:48   Re: Best way to block vehicle kills
Reply With Quote #14

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>

public plugin_init() {
    
register_plugin("Block Vehicle Damage""1.0""OnePL");

    
RegisterHam(Ham_TakeDamage"player""TakeDamageVehicle");
}

public 
TakeDamageVehicle(ident) {
    static 
name[32]; pev(ent1name31);
    if(
equal(name"func_vehicle")) {
        
SetHamParamFloat(40.0);
        return 
2;
    }
    return 
1;

OnePL is offline
Send a message via ICQ to OnePL Send a message via AIM to OnePL Send a message via Yahoo to OnePL Send a message via Skype™ to OnePL