Raised This Month: $ Target: $400
 0% 

Fakemeta; give items


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rolnaaba
Veteran Member
Join Date: May 2006
Old 05-30-2007 , 20:42   Fakemeta; give items
Reply With Quote #1

hwo do you give items in fakemeta, I am trying to eliminate the need for fun module. Or MUST I use fun?
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-30-2007 , 21:21   Re: Fakemeta; give items
Reply With Quote #2

Take a look in fakemeta utilities by VEN : http://forums.alliedmods.net/showthread.php?t=28284
__________________
Arkshine is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 05-30-2007 , 21:38   Re: Fakemeta; give items
Reply With Quote #3

hows this:
Code:
public give_nade(id) {     new ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "weapon_hegrenade"));         if (!pev_valid(ent))         return 0;     new Float:origin[3];     pev(id, pev_origin, origin);     set_pev(ent, pev_origin, origin);     set_pev(ent, pev_spawnflags, pev(ent, pev_spawnflags) | SF_NORESPAWN);     dllfunc(DLLFunc_Spawn, ent);     new save = pev(ent, pev_solid);     dllfunc(DLLFunc_Touch, ent, index);     if (pev(ent, pev_solid) != save)         return ent     engfunc(EngFunc_RemoveEntity, ent)     return -1; }
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Reply


Thread Tools
Display Modes

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 10:32.


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