Raised This Month: $32 Target: $400
 8% 

Showing results 1 to 25 of 70
Search took 0.00 seconds.
Search: Posts Made By: fatal_nl
Forum: Scripting Help 05-24-2019, 20:47
Replies: 0
Views: 1,108
Posted By fatal_nl
!is_user_bot(id) not working

Please move to trash. Made a simple error myself, did || instead of &&..
Forum: Scripting Help 05-22-2019, 05:40
Replies: 6
Views: 1,030
Posted By fatal_nl
Re: Monthly log file instead of writing to log_to_file

Below is my code with another update (writing logs in seperate folder). I don't know exactly what I can move to plugin_init and what should be kept in client_connect. Keeping in mind that the server...
Forum: Scripting Help 05-22-2019, 05:32
Replies: 4
Views: 1,723
Posted By fatal_nl
Re: mkdir needed to create folder in /logs?

I have it now like this below. For some reason mkdir chmod's the directory to 0700, which should be 0755.


#include <amxmodx>
#include <amxmisc>
#include <geoip>

new szName[32], szIP[17],...
Forum: Scripting Help 05-21-2019, 20:09
Replies: 6
Views: 1,030
Posted By fatal_nl
Re: Monthly log file instead of writing to log_to_file

Another question:

What is more effecient?

Putting this into client_connect:

new iCurrentMonthYear[8]
new szLogFile[32]

Or add it outside of it. These 2 are only used in client_connect....
Forum: Scripting Help 05-21-2019, 19:55
Replies: 4
Views: 1,723
Posted By fatal_nl
mkdir needed to create folder in /logs?

Is it necessary to do a directory check and a mkdir to use log_to_file to a specific directory?

Default it logs to /addons/amxmodx/logs and I want it to log to /addons/amxmodx/logs/my_plugin_logs...
Forum: Scripting Help 05-17-2019, 20:43
Replies: 6
Views: 1,030
Posted By fatal_nl
Re: Monthly log file instead of writing to log_to_file

Edit: now with formatex instead of format.

I hope this attempt works (it's a stripped down version I'm now testing with to write monthly log files, I removed the /allinfo command):


#include...
Forum: Scripting Help 05-17-2019, 04:56
Replies: 6
Views: 1,030
Posted By fatal_nl
Monthly log file instead of writing to log_to_file

With log_to_file I have to clear the log by hand once a month because the file is getting too big.

Is there a replacement that generates a new logfile each month? Preferably with the month/year...
Forum: General 05-15-2019, 01:50
Replies: 1
Views: 987
Posted By fatal_nl
Log chat in seperate log file?

For now I'm not even sure if this can be done with a cvar by default or if amxmodx is even needed for this. But what I want is making a daily .log file containing all chats that took place in the...
Forum: Suggestions / Requests 05-10-2019, 09:47
Replies: 3
Views: 1,018
Posted By fatal_nl
Re: Plugin request: chat spam blocker

That plugin can also be found here: https://forums.alliedmods.net/showthread.php?t=203063

It's still too advanced. I like to keep it simple.
Forum: Suggestions / Requests 05-10-2019, 08:24
Replies: 3
Views: 1,018
Posted By fatal_nl
Plugin request: chat spam blocker

I know there's a plugin already: Spam Blocker v3.6 (https://forums.alliedmods.net/showthread.php?t=86199)

There are a couple of things I don't like about the plugin:

- It is reading CVAR's from...
Forum: Scripting Help 05-09-2019, 00:53
Replies: 8
Views: 1,143
Posted By fatal_nl
Bad load, no compiler errors

Edit: I got it working, code is updated. Feel free to use it if you like it.

Below is a stripped down version of ShowIP (https://forums.alliedmods.net/showthread.php?t=79825) with some added parts...
Forum: Approved Plugins 12-12-2018, 10:40
Replies: 397
Views: 273,971
Posted By fatal_nl
Re: Restrict Names 1.2a

It now works successfully with "Default[+-]".
Forum: Approved Plugins 12-11-2018, 00:21
Replies: 397
Views: 273,971
Posted By fatal_nl
Re: Restrict Names 1.2a

I'm trying to match "Default-" without success.

Edit: fixed with "Default[-]\g"

Edit2: and suddenly it stopped working..
Forum: Suggestions / Requests 11-27-2018, 09:51
Replies: 4
Views: 1,164
Posted By fatal_nl
Re: Friendly Fire: 50% damage in return

I replaced those lines in my code. Thanks for the input!
Forum: HL1 Servers (HLDS) 11-26-2018, 19:01
Replies: 7
Views: 1,658
Posted By fatal_nl
1 hostage left (3 dead) round doesn't end when last hostage is rescued

Situation:

3 hostages dead, 1 hostage alive: last hostage saved in rescue zone, round doesn't end. I can't find the cvar that controls this.
Forum: Suggestions / Requests 11-25-2018, 23:00
Replies: 4
Views: 1,164
Posted By fatal_nl
Re: Friendly Fire: 50% damage in return

Fixed it myself. Updated code in OP.
Forum: Suggestions / Requests 11-25-2018, 20:42
Replies: 4
Views: 1,164
Posted By fatal_nl
Re: Friendly Fire: 50% damage in return

I updated the code (still need to add that it only works with killing own team mates, not the opposite team):

It's takes health totally random. In one occasion the attacker even got health added...
Forum: Suggestions / Requests 11-25-2018, 12:11
Replies: 4
Views: 1,164
Posted By fatal_nl
Friendly Fire: 50% damage in return

I have tried the "Mirror Damage" plugin with no succes.

I tried this (unfinished) with no success either:

Edit: updated and working code:


#include <amxmodx>
#include <amxmisc>
#include...
Forum: Suggestions / Requests 08-13-2018, 09:58
Replies: 14
Views: 5,623
Posted By fatal_nl
Re: no name changer

For some reason the player index get messed up when renaming a dead player of spectator with set_user_info en this plugin.
Forum: Suggestions / Requests 08-12-2018, 16:16
Replies: 14
Views: 5,623
Posted By fatal_nl
Re: no name changer

Please remove, I did hit reply instead of edit.
Forum: Suggestions / Requests 08-11-2018, 19:59
Replies: 14
Views: 5,623
Posted By fatal_nl
Re: no name changer

I still got problems:

In Restrict Names code this is happening In Rename function: set_user_info(id, "name", name) (i stripped the spawn and kill)

With the code below all players, including...
Forum: Suggestions / Requests 08-11-2018, 06:37
Replies: 14
Views: 5,623
Posted By fatal_nl
Re: no name changer

Got it working with a bool and a couple of true and false.
Forum: Approved Plugins 08-11-2018, 06:33
Replies: 397
Views: 273,971
Posted By fatal_nl
Re: Restrict Names 1.2a

I got it working with a bool, true on rename function of this plugin, a fakemeta engclient function and make it false again.
Forum: Suggestions / Requests 08-10-2018, 23:05
Replies: 14
Views: 5,623
Posted By fatal_nl
Re: no name changer

I am trying to integrate the code below in the code of this plugin by Brad: Restrict Named 1.2a (https://forums.alliedmods.net/showthread.php?p=147257)

new const g_name[] = "name"

public...
Forum: Approved Plugins 08-09-2018, 17:12
Replies: 397
Views: 273,971
Posted By fatal_nl
Re: Restrict Names 1.2a

This doesn't work properly with ReHLDS. If a player with a restricted name connects and join as a spectator, the plugin spawns, rename and kills the spectator. This is causing rounds not ending when...
Showing results 1 to 25 of 70

 
Forum Jump

All times are GMT -4. The time now is 23:35.


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