Raised This Month: $ Target: $400
 0% 

What am i doing wrong here?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-06-2012 , 15:41   What am i doing wrong here?
Reply With Quote #1

Hooked this:
PHP Code:
RegisterHam(Ham_Touch"grenade""fw_touch"
functions
PHP Code:
public fw_touch(id)
{
    if (
is_user_alive(id))
    {
        
set_task(0.1"Kill"id)
    }
}

public 
Kill(id)
{
    
user_silentkill(id)

__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 05-06-2012 , 16:04   Re: What am i doing wrong here?
Reply With Quote #2

PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

#define PLUGIN "Touch -_-"
#define VERSION "1.0"
#define AUTHOR "Xalus"

new iMaxPlayers

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Register: Ham
    
RegisterHam(Ham_Touch"player""Ham_PlayerTouch")
    
    
// Others
    
iMaxPlayers get_maxplayers()
}
public 
Ham_PlayerTouch(identity) {
    if(
is_user_alive(id) && pev_valid(entity)
    && 
entity iMaxPlayers) {
        
// Check classname of entity
        
    
}

__________________
Retired.
Xalus 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 00:22.


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