AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How do i to execute a function to buy a grenade? (https://forums.alliedmods.net/showthread.php?t=89000)

alan_el_more 03-31-2009 19:27

How do i to execute a function to buy a grenade?
 
sorry 4 my poor english :(:oops:

padilha007 03-31-2009 19:31

Re: How do i to execute a function to buy a grenade?
 
#include <fun>

give_item("weapon_hegrenade")

alan_el_more 03-31-2009 19:56

Re: How do i to execute a function to buy a grenade?
 
it is not what i want
i want to buy a grenade by example let's say you bought a grenade

Hunter-Digital 03-31-2009 20:04

Re: How do i to execute a function to buy a grenade?
 
You want to detect when a player buys a grenade ?

alan_el_more 03-31-2009 20:08

Re: How do i to execute a function to buy a grenade?
 
Quote:

Originally Posted by Hunter-Digital (Post 794418)
You want to detect when a player buys a grenade ?

yes

Sn!ff3r 03-31-2009 22:20

Re: How do i to execute a function to buy a grenade?
 
PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Nowy Plugin"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("hegren","client_grenade")
}

public 
client_grenade(id)
{
    
client_print(id,print_chat,"You bought a grenade!")    



alan_el_more 03-31-2009 22:32

Re: How do i to execute a function to buy a grenade?
 
did you tested?

VMAN 03-31-2009 22:55

Re: How do i to execute a function to buy a grenade?
 
That's your job :)


All times are GMT -4. The time now is 02:26.

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