Raised This Month: $ Target: $400
 0% 

Light on func_targer model entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-26-2017 , 05:52   Re: Light on func_targer model entity
Reply With Quote #3

Quote:
Originally Posted by georgik57 View Post
Not sure if this will help, but here u go:
Code:
#include <amxmodx> #include <fakemeta> //#include <hamsandwich> //#include <D7Debug> public plugin_init() {     register_plugin("D7 Render Entities Map", "0.0.5", "D i 5 7 i n c T")         set_pev(0, pev_rendermode, kRenderTransTexture);     set_pev(0, pev_renderamt, 128.0)         new iIDEnt = -1, iSzLenght;         while ((iIDEnt = engfunc(EngFunc_FindEntityInSphere, iIDEnt, Float:{ 0.0, 0.0, 0.0 }, 9000.0)) != 0)     {         if (!pev_valid(iIDEnt))             continue;                 static szEntInfo[32];         pev(iIDEnt, pev_classname, szEntInfo, charsmax(szEntInfo))                 //ftD7Log(_, _, "[plugin_init] iIDEnt: %d. Class name: ^"%s^".", iIDEnt, szEntInfo)                 pev(iIDEnt, pev_model, szEntInfo, charsmax(szEntInfo))                 //ftD7Log(_, _, "[plugin_init] iIDEnt: %d. Model: ^"%s^".^n", iIDEnt, szEntInfo)                 if (szEntInfo[0] != '*')         {             iSzLenght = strlen(szEntInfo);                         if (iSzLenght < 4)                 continue;                         if (equali(szEntInfo[iSzLenght - 4], ".mdl"))             {                 set_pev(iIDEnt, pev_rendermode, kRenderNormal)                 set_pev(iIDEnt, pev_renderfx, kRenderFxGlowShell)                 set_pev(iIDEnt, pev_rendercolor, Float:{ 255.0, 255.0, 255.0 })                 set_pev(iIDEnt, pev_renderamt, 15.0)             }             else if (equali(szEntInfo[iSzLenght - 4], ".spr"))             {                 set_pev(iIDEnt, pev_renderamt, 191.0)             }         }         else         {             set_pev(iIDEnt, pev_rendermode, kRenderTransTexture);             set_pev(iIDEnt, pev_renderamt, 128.0)         }     } }
Declare iIDEnt as static.
__________________
edon1337 is offline
 



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 20:51.


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