Advertisement
Filiq_

Untitled

Dec 16th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <fakemeta>
  3.  
  4. #define PLUGIN "Craciun"
  5. #define VERSION "1.0"
  6. #define AUTHOR "KENNY."
  7.  
  8. #define CHRISTMAS "models/c4_bradut.mdl"
  9. #define CUTITCRACIUN "models/cutitcraciunruls.mdl"
  10.  
  11. public plugin_init()
  12. {
  13. register_plugin(PLUGIN,VERSION,AUTHOR);
  14. register_forward(FM_SetModel,"fw_setmodel");
  15. }
  16.  
  17.  
  18. public fw_setmodel(ent,model[])
  19. {
  20. if(equali(model,"models/w_c4.mdl"))
  21. {
  22. engfunc(EngFunc_SetModel,ent,CHRISTMAS);
  23. return FMRES_SUPERCEDE;
  24. }
  25.  
  26. if(equali(model,"models/v_knife.mdl"))
  27. {
  28. engfunc(EngFunc_SetModel,ent,CUTITCRACIUN);
  29. return FMRES_SUPERCEDE;
  30. }
  31.  
  32. return FMRES_IGNORED;
  33. }
  34.  
  35. public plugin_precache()
  36. {
  37. precache_model(CHRISTMAS);
  38. precache_model(CUTITCRACIUN);
  39. engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "env_snow"));
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement