mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
added request at20855
This commit is contained in:
parent
2ac00713a7
commit
34f12e76c4
@ -58,4 +58,19 @@ native xmod_get_stats_size();
|
||||
/* Returns 1 if true */
|
||||
native xmod_is_custom_wpn(wpnindex);
|
||||
|
||||
/************* Shared Natives End ********************************/
|
||||
/************* Shared Natives End ********************************/
|
||||
|
||||
/* Spawns a Weapon */
|
||||
stock ts_weaponspawn(weaponid[], duration[], extraclip[], spawnflags[], Float:Origin[3])
|
||||
{
|
||||
new ent = create_entity("ts_groundweapon");
|
||||
|
||||
DispatchKeyValue(ent, "tsweaponid", weaponid);
|
||||
DispatchKeyValue(ent, "wduration", duration);
|
||||
DispatchKeyValue(ent, "wextraclip", extraclip);
|
||||
DispatchKeyValue(ent, "spawnflags", spawnflags);
|
||||
DispatchSpawn(ent);
|
||||
|
||||
entity_set_origin(ent, Origin);
|
||||
return PLUGIN_HANDLED;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user