Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[AMXMODX] Precaching Models
#1
Code:
#include <amxmodx>
#include <fakemeta>

new g_precache_models[][] = { "models/player/example/exampleT.mdl", "models/player/example2/example2T.mdl" }

public plugin_precache()
{
   register_plugin("Models Precacher", "0.1.0", "fezh")

   for (new i = 0; i < sizeof g_precache_models; i++)
       engfunc(EngFunc_PrecacheModel, g_precache_models[i])
}  


Be careful about double apostrophes and commas while adding skins to the precaching list!
{ "models/player/example/exampleT.mdl", "models/player/example2/example2T.mdl" }
[Image: drive10.gif]

- United we stand, divided we fall. -
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)
Flag Counter
000webhost logo