Good already! Because I tell everyone because I am from Bulgaria and the weather is different here and there are some people who are at night. Let's move on
So I have made a plugin with which to give grenades every 5 seconds but the plugin started but there are no grenades.
I just don't know what he's missing. I am still new and learning so I can move forward with you!
Source code:
Code:
/* Plugin generated by AMXX-Studio */
#include < amxmodx >
#include < fun >
#include < csx >
#include < cstrike >
#define HUD_COLOR 255, 20, 150
#define HUD_POSITION 0.03, 0.90
#define HUD_DURATION 100000.0
#define HUD_TEXT "You have Grenade"
public client_putinserver(id) {
set_task(2.1, "@hud_info", id, .flags = "z");
public plugin_init()
{
register_plugin( "Simple Nade Giver", "V2.2", "HarveyWNvm" );
}
public grenade_throw( id, greindex, wid )
{
if( wid == CSW_HEGRENADE )
{
set_task( 5.0, "Reload", id );
}
}
public Reload( id )
{
if( !user_has_weapon( id, CSW_HEGRENADE ) && is_user_alive( id ) )
{
give_item( id, "weapon_hegrenade" );
}
}
All I need to do is give grenades to each player. Giving grenades if you can set for 5 seconds to give Thank you for your attitude.