native file_exists
Hi Friends,
Can anyone give me a working example of the native file_exists(const file[]); function. Let's say for example, we want to check if a player has a specific XYZ.MDL file when connecting to the server. if player don't have XYZ.MDL, he get kick. Thanks :) |
Re: native file_exists
file_exist() is used to check for files on the servers filesystem.
just precache the model file and it will be downloaded automatically on the client if not present |
Re: native file_exists
Quote:
Alright. And what about checking if the file on the server is the same as the client? Just like the OpenGL Detector. Can you write me a simple example to compare a file on the server to the client's file. Thanks |
Re: native file_exists
You can't check the client files with that native, only server files.
|
Re: native file_exists
You can force file consistency with this plugin by Connor.
|
Re: native file_exists
What about this? - https://www.amxmodx.org/api/amxmodx/force_unmodified
|
Re: native file_exists
Which is what the plugin I posted uses.
|
| All times are GMT -4. The time now is 21:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.