AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Fakemeta; give items (https://forums.alliedmods.net/showthread.php?t=55824)

Rolnaaba 05-30-2007 20:42

Fakemeta; give items
 
hwo do you give items in fakemeta, I am trying to eliminate the need for fun module. Or MUST I use fun?

Arkshine 05-30-2007 21:21

Re: Fakemeta; give items
 
Take a look in fakemeta utilities by VEN : http://forums.alliedmods.net/showthread.php?t=28284

Rolnaaba 05-30-2007 21:38

Re: Fakemeta; give items
 
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; }


All times are GMT -4. The time now is 10:32.

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