Raised This Month: $ Target: $400
 0% 

Grenade free Help ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
derio157
Member
Join Date: May 2017
Old 02-10-2019 , 14:05   Grenade free Help ?
Reply With Quote #1

Does anyone have or does there exist a grenade plugin for free to players?
derio157 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-10-2019 , 14:19   Re: Grenade free Help ?
Reply With Quote #2

Explain.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 02-19-2019 , 05:59   Re: Grenade free Help ?
Reply With Quote #3

PHP Code:
#include <amxmodx> // AMXX lmao
#include <fun> //give_item
#include <hamsandwich> // To hook Ham_Spawn

#define PLUGIN  "Free Grenades"
#define VERSION "1.0"
#define AUTHOR  "deprale" // CHANGE IT AS YOU LIKE, IDC, 1 min work.

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Spawn"player""player_spawn"1// THE HAM_SPAWN HOOK.
}

public 
player_spawn(id// THE FUNCTION I'M HOOKING.
{
    if( !
is_user_connectedid ) ) // CHECK IF THE USER IS CONNECTED.
        
return PLUGIN_HANDLED;

    
give_itemid"weapon_hegrenade" // HE
    
give_itemid"weapon_smokegrenade" // SMOKE
    
give_itemid"weapon_flashbang" // FLASH
    
give_itemid"weapon_flashbang" // FLASH

    
return PLUGIN_HANDLED;

__________________

Last edited by deprale; 02-19-2019 at 06:01.
deprale is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 02-19-2019 , 07:59   Re: Grenade free Help ?
Reply With Quote #4

https://www.amxx-bg.info/vipgen/?lang=en
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 02-21-2019 , 05:04   Re: Grenade free Help ?
Reply With Quote #5

PHP Code:
 if( !is_user_connectedid ) ) // CHECK IF THE USER IS CONNECTED.
        
return PLUGIN_HANDLED
That should be is_user_alive and you should return HAM_IGNORED, not PLUGIN_HANDLED.
__________________
HamletEagle 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 01:22.


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