Raised This Month: $ Target: $400
 0% 

Drop C4 In Site=kill


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dutchie
Junior Member
Join Date: Jan 2007
Location: Canada!!!
Old 01-25-2007 , 09:39   Re: Drop C4 In Site=kill
Reply With Quote #1

SCRATCH THAT

Code:
#include <cstrike>
#include <amxmodx>


#define PLUGIN_NAME "New plugin" 
#define PLUGIN_VERSION "0.1" 
#define PLUGIN_AUTHOR "Name" 
 
 
public plugin_init() 
{ 
    register_plugin("C4 Drop","1.0","Alka"); 
    register_logevent("f_spawned", 3, "2=Spawned_With_The_Bomb"); 
} 
 
 
public f_killuser(id) 
    user_kill(id,0); 
 
stock get_loguser_index() 
{ 
    new loguser[80],name[32] 
 
    read_logargv(0,loguser,79) 
 
    parse_loguser(loguser,name,31) 
 
    return get_user_index(name) 
 
} 
 
public f_spawned() 
{ 
 
    new id = get_loguser_index(); 
 
    set_task(5.0,"f_hasbomb",id); 
 
} 
 
public f_hasbomb(id) 
{ 
 
    if(user_has_weapon(id, CSW_C4)) 
        return PLUGIN_HANDLED; 
    else 
    {  
 
        set_task(5.0,"f_killuser",id); 
 
    } 
 
    return  PLUGIN_HANDLED; 
 
}
__________________

Dutchie is offline
Reply



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 22:24.


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