very simple precache mod
1 Attachment(s)
Hi there,
This is my first plugin, so please shoot. I have been surging for a small easy to use precache plugin. All the ones i found are nice, but big and complex. So i decided to write one myself. It depends on a data file: amxmodx/configs/precache.ini. Filled with simple lines like: gfc/picture.gif sound/blabla.wav For every file to transfer, 1 line. Comments in the file must be predesesed by ; regards |
I like this plugin, +karma!
When a plugin dosen't precache the things it needs, then I will use this. EDIT Please fix first, 26 errors! |
The online compiler does not give errors?
What are the errors you get? O i see, when you use "get pluging" If you copy the text and past it into the online compiler it works. I will check the file. :) |
ok solved it..
saved the file with notepad instead of wordpad. :D I use this to upload the picture of the motd. So i don't need to use a www server :D |
Shouldn't you be precaching models and sounds differently?
|
Quote:
What i have found is when you use precache_generic you have to use music/bla.wav instead of bla.wav (precache_sound) I didn't find any other reason. Tested it with sounds and that works. Further i saw that when used with unknown extensions, the client refuses that file :D |
you should put your code that you have in the first post in tags
|
I'd like to suggest that you log an error to the AMXX log file if you can't find the precache.ini file. I'd also like to suggest that you allow comments in the precache.ini file (allowing "//" or ";" to designate comments).
|
This plugin has been done, and is incorporated in, several other plugins.
|
Can you link to them?
|
All times are GMT -4. The time now is 13:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.