AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Ranks get deleted after server crash? (https://forums.alliedmods.net/showthread.php?t=28769)

bulwey 05-22-2006 09:37

Ranks get deleted after server crash?
 
Hey guys...

Sorry for this (maybe) stupid question but can someone tell me, why my amxx ranks get deleted by every server crash?

This problem comes up, since i have installed the new AMXX 1.71 yesterday!

Before I had AMXX 1.60 and it didnt delete the ranks:

I think there is a problem with the amxx.cfg, can someone help?
Code:

/ AMX Configuration File
echo Executing AMX Mod X Configuration File

// Default access for all non admin players (see users.ini for access details)
amx_default_access "z"

// Name of setinfo which should store a password on a client (you should change this)
// (Example: setinfo _pw "password")
amx_password_field "_pw"

// Mode of logging to a server
// 0 - disable logging, players won't be checked (and access won't be set)
// 1 - normal mode which obey flags set in accounts
// 2 - kick all players not on list
amx_mode 1

// Show admins activity
// 0 - disabled
// 1 - show without admin name
// 2 - show with name
amx_show_activity 2

// Frequency in seconds and text of scrolling message
amx_scrollmsg "Willkommen auf der %hostname% -- Dieser Server leuft mit AMXX 1.60 und MM 1.18" 600

// Center typed colored messages (last parameter is a color in RRRGGGBBB format)

// Frequency in seconds of colored messages
amx_freq_imessage 80

amx_imessage "Sounds gibts auf www.red-fox4u.de zum Download" "255"
// Set in seconds how fast players can chat (chat-flood protection)
amx_flood_time 0.75

// Amount of reserved slots (for more details see comments in a plugin source)
amx_reservation 0

// Displaying of time remaining
// a - display white text on bottom
// b - use voice
// c - don't add "remaining" (only in voice)
// d - don't add "hours/minutes/seconds" (only in voice)
// e - show/speak if current time is less than this set in parameter
amx_time_display "ab 1200" "ab 600" "ab 300" "ab 180" "ab 60" "bcde 11"

// Announce "say thetime" and "say timeleft" with voice
amx_time_voice 1

// Minimum delay in seconds between two voting sessions
amx_vote_delay 10

// How long voting session goes on
amx_vote_time 10

// Display who votes for what option
amx_vote_answers 1

// Some ratios for voting success
amx_votekick_ratio 0.40
amx_voteban_ratio 0.40
amx_votemap_ratio 0.40
amx_vote_ratio 0.02

// Max. time to which map can be extended
amx_extendmap_max 90

// Step for each extending
amx_extendmap_step 15

// Rank mode
// 0 - by nick
// 1 - by authid
// 2 - by ip
csstats_rank 1

// Max size of the stats file
csstats_maxsize 35000

// Duration of HUD-statistics
amx_statsx_duration 12.0

// HUD-statistics display limit relative round freeze end
// Negative time will clear the HUD-statstics before the round freeze time has ended
amx_statsx_freeze -2.0

//If you set this to 0, clients cannot chose their language
amx_client_languages 1

// Plugin Debug mode
// 0 - No debugging (garbage line numbers)
// 1 - Plugins with "debug" option in plugins.ini are put into debug mode
// 2 - All plugins are put in debug mode
// Note - debug mode will affect JIT performance
amx_debug 1

THX 4 help !

Hawk552 05-22-2006 09:39

Add csstats_reset 0 to that config.

If you're running Linux you might need to chmod 777 the csstats file and the data dir.

This should be in support / help for future reference.

bulwey 05-22-2006 09:55

k
 
Yes, its a linux server, the csstats_reset 0 didnt work, i will try the other things....


So im supposed to write csstats_reset 0 in the csstats.sma and the dir file?

Code:

/* AMX Mod X
*  Rank Calculation
*
* by the AMX Mod X Development Team
*  originally developed by OLO
*
* This file is part of AMX Mod X.
*
*
*  This program is free software; you can redistribute it and/or modify it
*  under the terms of the GNU General Public License as published by the
*  Free Software Foundation; either version 2 of the License, or (at
*  your option) any later version.
*
*  This program is distributed in the hope that it will be useful, but
*  WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
*  General Public License for more details.
*
*  You should have received a copy of the GNU General Public License
*  along with this program; if not, write to the Free Software Foundation,
*  Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*  In addition, as a special exception, the author gives permission to
*  link the code of this program with the Half-Life Game Engine ("HL
*  Engine") and Modified Game Libraries ("MODs") developed by Valve,
*  L.L.C ("Valve"). You must obey the GNU General Public License in all
*  respects for all of the code used other than the HL Engine and MODs
*  from Valve. If you modify this file, you may extend this exception
*  to your version of the file, but you are not obligated to do so. If
*  you do not wish to do so, delete this exception statement from your
*  version.
*/

/* File location: $moddir/addons/amxmodx/data/csstats.amxx */

#include <amxmodx>

/* Function calculates position in rank.
*
* Stats:
* 0 - kills
* 1 - deaths
* 2 - headshots
* 3 - teamkills
* 4 - shots
* 5 - hits
* 6 - damage
*
* Returning cellmin as value in get_score function
* makes that rank won't be saved. */

public get_score(stats[8], body[8])
        return stats[0] - stats[1] - stats[3]        // kills - deaths - teamkills

csstats_reset 0


Hawk552 05-22-2006 10:00

No, add it to your amxx.cfg.

If you have shell / SSH access, chmod 777 on the data dir.

bulwey 05-22-2006 10:05

Yes!
 
Yes, i did, but there was no result, when i write "quit" in hlsw for test after killing sbdy, the ranks are again deleted :roll:
Code:

// AMX Configuration File
echo Executing AMX Mod X Configuration File

// Default access for all non admin players (see users.ini for access details)
amx_default_access "z"

// Name of setinfo which should store a password on a client (you should change this)
// (Example: setinfo _pw "password")
amx_password_field "_pw"

// Mode of logging to a server
// 0 - disable logging, players won't be checked (and access won't be set)
// 1 - normal mode which obey flags set in accounts
// 2 - kick all players not on list
amx_mode 1

// Show admins activity
// 0 - disabled
// 1 - show without admin name
// 2 - show with name
amx_show_activity 2

// Frequency in seconds and text of scrolling message
amx_scrollmsg "Willkommen auf der %hostname% -- Dieser Server leuft mit AMXX 1.60 und MM 1.18" 600

// Center typed colored messages (last parameter is a color in RRRGGGBBB format)

// Frequency in seconds of colored messages
amx_freq_imessage 80

amx_imessage "Sounds gibts auf www.red-fox4u.de zum Download" "255"
// Set in seconds how fast players can chat (chat-flood protection)
amx_flood_time 0.75

// Amount of reserved slots (for more details see comments in a plugin source)
amx_reservation 0

// Displaying of time remaining
// a - display white text on bottom
// b - use voice
// c - don't add "remaining" (only in voice)
// d - don't add "hours/minutes/seconds" (only in voice)
// e - show/speak if current time is less than this set in parameter
amx_time_display "ab 1200" "ab 600" "ab 300" "ab 180" "ab 60" "bcde 11"

// Announce "say thetime" and "say timeleft" with voice
amx_time_voice 1

// Minimum delay in seconds between two voting sessions
amx_vote_delay 10

// How long voting session goes on
amx_vote_time 10

// Display who votes for what option
amx_vote_answers 1

// Some ratios for voting success
amx_votekick_ratio 0.40
amx_voteban_ratio 0.40
amx_votemap_ratio 0.40
amx_vote_ratio 0.02

// Max. time to which map can be extended
amx_extendmap_max 90

// Step for each extending
amx_extendmap_step 15

// Rank mode
// 0 - by nick
// 1 - by authid
// 2 - by ip
csstats_rank 1

// No stats reset
csstats_reset 0

// Max size of the stats file
csstats_maxsize 35000

// Duration of HUD-statistics
amx_statsx_duration 12.0

// HUD-statistics display limit relative round freeze end
// Negative time will clear the HUD-statstics before the round freeze time has ended
amx_statsx_freeze -2.0

//If you set this to 0, clients cannot chose their language
amx_client_languages 1

// Plugin Debug mode
// 0 - No debugging (garbage line numbers)
// 1 - Plugins with "debug" option in plugins.ini are put into debug mode
// 2 - All plugins are put in debug mode
// Note - debug mode will affect JIT performance
amx_debug 1


Hawk552 05-22-2006 10:22

Since you won't answer my statement about shell / ssh, tell your host to chmod 777 the ./addons/amxmodx/data/ directory, and that should probably do it.

bulwey 05-22-2006 10:28

Wont work!
 
My host is a friend of mine and plays only CSS and has no idea of AMXX, he only uses Maniadmin plugin :x

Dont know whats to do

Hawk552 05-22-2006 10:30

Re: Wont work!
 
Quote:

Originally Posted by bulwey
My host is a friend of mine and plays only CSS and has no idea of AMXX, he only uses Maniadmin plugin :x

Dont know whats to do

This has nothing to do with AMXX... if he's running Linux then he must know how to chmod a directory, or he's an idiot.

bulwey 05-22-2006 10:33

k
 
Ok, dont know what it is but i will tell him...



Quote:

If you're running Linux you might need to chmod 777 the csstats file and the data dir.
Must he add sth or just chmod??

Hawk552 05-22-2006 10:36

Instructions for those of us less fortunate:
  • cd until you're at your ./$moddir (if you're running CS, this is cstrike. For dod, this is dod, for TFC, it's tfc, etc)
  • Enter this: chmod 777 ./addons/amxmodx/data/

That's it... it's not that hard


All times are GMT -4. The time now is 16:34.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.