Code: Select all
public grenade_throw( x, y, z ) { }
y = ?
z = ?
Edit: Dati-mi si un exemplu :) !
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
Code: Select all
public grenade_throw( x, y, z ) { }
Code: Select all
forward grenade_throw( index,greindex,wId );
Code: Select all
#include <amxmodx>
#include <fun>
#define PLUGIN "test"
#define VERSION "1.0"
#define AUTHOR "ExoTiQ"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public grenade_throw ( index, greindex, wId )
{
if(wId==4) set_task(15.0,"give_he" ,index, _, _, "a", 1)
return PLUGIN_CONTINUE
}
public give_he( index) {
give_item(index,"weapon_hegrenade")
return PLUGIN_CONTINUE
}
Hai sa incep de la wId.YONTU wrote:If( wId == 4 )
4 = ? :-/
Code: Select all
/**
* Returns the weapon id, otherwise 0 when no id found.
* The weapon name is case sensitive, and has the weapon_* form.
*/
native get_weaponid(const name[]);
Code: Select all
get_weaponid(const name[])