PDA

View Full Version : How create a system of maximum players that the server reach ?


Pertubado
16/04/2014, 02:02 PM
I wonder how I create a system that says what was the maximum players that hit my server and save it and whenever beat that appear in-game:

The Record of players has been reached!

Sorry for my bad english...

StuartD
16/04/2014, 02:08 PM
Something like this?
http://forum.sa-mp.com/showthread.php?t=156569

Pertubado
16/04/2014, 02:27 PM
I downloaded this but is showing "Unable to load filterscript" because ?

Dignity
16/04/2014, 02:32 PM
Your client couldn't load the .amx. Try these files (I compiled them and tried loading it for you: both worked:

https://hostr.co/ZVxGWyA8jTF6
https://hostr.co/SBMaHaPyZH1v

Make sure to name them "compile" at the filterscripts line or whatever you change the name to.

iBanner
16/04/2014, 02:33 PM
Did you try to compile it first before executing your server?

EDIT: A good guy above me was a good guy :D

Pertubado
16/04/2014, 02:38 PM
Yes I have compiled more the error persists ...

Dignity
16/04/2014, 02:39 PM
Did you try my links? They worked for me and shouldn't give you any issues.

Pertubado
16/04/2014, 02:44 PM
Yes i downloaded more not worked.

Dignity
16/04/2014, 02:45 PM
The problem is on your end. Everything works fine for me. Can you show me your "server.cfg" and "server_log.txt"?

Pertubado
16/04/2014, 02:49 PM
Yes

----------------------------------------------------------------------------------
echo Executing Server Config...
lanmode 0
rcon_password
maxplayers 30
port 7777
hostname
plugins sscanf streamer
gamemode0 TOB
filterscripts compile.amx
query 1
weburl
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
----------------------------------------------------------------------------------
SA-MP Dedicated Server
----------------------
v0.3z, (C)2005-2014 SA-MP Team

[10:50:08] hostname = "SA-MP Server" (string)
[10:50:08] weburl = "www.sa-mp.com" (string)
[10:50:08]
[10:50:08] Server Plugins
[10:50:08] --------------
[10:50:08] Loading plugin: sscanf
[10:50:08]

[10:50:08] ===============================

[10:50:08] sscanf plugin loaded.

[10:50:08] (c) 2009 Alex "******" Cole

[10:50:08] ===============================

[10:50:08] Loaded.
[10:50:08] Loading plugin: streamer
[10:50:08]

*** Streamer Plugin v2.5.2 by Incognito loaded ***

[10:50:08] Loaded.
[10:50:08] Loaded 2 plugins.

[10:50:08]
[10:50:08] Filterscripts
[10:50:08] ---------------
[10:50:08] Loading filterscript 'compile.amx.amx'...
[10:50:08] Unable to load filterscript 'compile.amx.amx'.
[10:50:08] Loaded 0 filterscripts.

[10:50:08] Debug information
[10:50:08] -------------------------------------
[10:50:08] Last vehicle ID: 290
[10:50:08] Last object ID: 18
[10:50:08] Loaded 0 houses
[10:50:08] Loaded 128 businesses
[10:50:08] Loaded 8 speed-camera's
[10:50:08] -------------------------------------
[10:50:08] Houses that have been fixed: 0
[10:50:08]
----------------------------------
[10:50:08] • Caminhoneiro/Truck/Cargas •
[10:50:08] ----------------------------------

[10:50:08] Number of vehicle models: 25

Dignity
16/04/2014, 02:51 PM
[10:50:08] Loading filterscript 'compile.amx.amx'...
[10:50:08] Unable to load filterscript 'compile.amx.amx'.


It is looking for the file with the name compile.amx with the extension .amx. So it's looking for a file with the name "compile.amx".

You need to remove the .amx behind "compile".


echo Executing Server Config...
lanmode 0
rcon_password
maxplayers 30
port 7777
hostname
plugins sscanf streamer
gamemode0 TOB
filterscripts compile
query 1
weburl
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0

Pertubado
16/04/2014, 02:57 PM
Ooooooh very good tank you man <3

Dignity
16/04/2014, 03:01 PM
No problem :)