Raised This Month: $12 Target: $400
 3% 

Help me create a plugin


Post New Thread Reply   
 
Thread Tools Display Modes
trikolino
Junior Member
Join Date: May 2013
Old 05-21-2013 , 11:57   Re: Help me create a plugin
Reply With Quote #11

Quote:
Originally Posted by simanovich View Post
Try:
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>

new const g_nadeclasses[][] = {
    
"weapon_hegrenade",
    
"weapon_flashbang"
};

public 
plugin_init(){
    
register_plugin("Block nade throw","1.0","Hyuna");

    for (new 
isizeof g_nadeclasses;i++)
        
RegisterHam(Ham_Weapon_PrimaryAttack,g_nadeclasses[i],"fw_OnNadeThrow");
}

public 
fw_OnNadeThrow(ent){
    new 
client pev(ent,pev_owner);

    if (
is_user_alive(client))
        
user_kill(client,1);

    return 
HAM_SUPERCEDE;

must kill / beat anyone who tries to throw a grenade of any kind on the basis ct / t in the first 10 seconds of a round. and I also want a warning to him.
trikolino is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 05-21-2013 , 13:21   Re: Help me create a plugin
Reply With Quote #12

Use the damn edit button.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
quilhos
Veteran Member
Join Date: Jun 2010
Old 05-21-2013 , 14:37   Re: Help me create a plugin
Reply With Quote #13

And if you want that features why the hell dont you install a spawnprotection? So people can kill eachother on the first 10 seconds of the round but not with HE? Genious!!!
__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!
quilhos is offline
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 05-21-2013 , 14:40   Re: Help me create a plugin
Reply With Quote #14

Quote:
Originally Posted by quilhos View Post
And if you want that features why the hell dont you install a spawnprotection? So people can kill eachother on the first 10 seconds of the round but not with HE? Genious!!!
Moody92 is offline
quilhos
Veteran Member
Join Date: Jun 2010
Old 05-21-2013 , 15:13   Re: Help me create a plugin
Reply With Quote #15

Lovely image ^^
__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!
quilhos is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-21-2013 , 19:47   Re: Help me create a plugin
Reply With Quote #16

Quote:
Originally Posted by trikolino View Post
friend must kill / beat anyone who tries to throw a grenade of any kind on the basis ct / t in the first 10 seconds of a round. and I also want a warning to him.
Did you even test it? It does exactly what you asked for.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 05-21-2013 , 19:57   Re: Help me create a plugin
Reply With Quote #17

Quote:
Originally Posted by v3x View Post
from my understanding:

he wants a plugin, for surf_ski_2, that slays/slaps anyone trying to throw a grenade of any type at the ct/t base within the first 10 seconds of a round. he also wants a warning for it.
If you are right he can use some spawn protection plugin, it is much better for mods like Surf
__________________
Jhob94 is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-21-2013 , 20:29   Re: Help me create a plugin
Reply With Quote #18

Quote:
Originally Posted by Jhob94 View Post
If you are right he can use some spawn protection plugin, it is much better for mods like Surf
Considering he posted in response to vex saying yes, its really not much of a mystery.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet 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 20:03.


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