Raised This Month: $94 Target: $400
 23% 

Memo IPs


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands        Approver:   EKS (167)
Kenvelo
New Member
Join Date: Mar 2006
Old 03-08-2006 , 18:49   Memo IPs
Reply With Quote #1

This plugin manages entries consisting of a chosen name and an IP address for each user. I have a server where the IPs are fixed, don't change much. Here's what you can do with my plugin: adding new entry, renaming, listing active players by registered name, listing all recorded entries, banning/unbanning by registered names (even when offline).

/*** Memo IPs Plugin
*
* (c) Copyright 2006, Kenvelo
*
* amx_memo_add <name> <listname>
* amx_memo_who <name>
* amx_memo_rename <listname> <newlistname>
* amx_memo_ban <listname>
* amx_memo_unban <listname>
* amx_memo_list
*
* Installation note: create the file memo.txt
* in the cstrike directory, containing a single
* '*' character.
*
***/
Attached Files
File Type: sma Get Plugin or Get Source (memo.sma - 5457 views - 8.1 KB)
Kenvelo is offline
Flashhh!
Senior Member
Join Date: Nov 2005
Old 03-10-2006 , 10:16  
Reply With Quote #2

I dont know what happen but The IP and Nick are not being saved into memo.txt. Any Ideas?
Flashhh! is offline
Kenvelo
New Member
Join Date: Mar 2006
Old 03-10-2006 , 10:30  
Reply With Quote #3

Make sure the file is writable by the user that runs the CS server app. Other than this, it should work. This plugin was ported from AmxMod, where I had another problem. AmxMod was configured not to allow writing to files, so I just had to fix that. Hope you get it to work. Remember, it has to start by having a file with a star '*' on the first line.
Kenvelo is offline
Flashhh!
Senior Member
Join Date: Nov 2005
Old 03-10-2006 , 10:54  
Reply With Quote #4

Quote:
Originally Posted by Kenvelo
Make sure the file is writable by the user that runs the CS server app. Other than this, it should work. This plugin was ported from AmxMod, where I had another problem. AmxMod was configured not to allow writing to files, so I just had to fix that. Hope you get it to work. Remember, it has to start by having a file with a star '*' on the first line.
Well Im noty using Cs, I use DoD. Some functions work like amx_memo_list, also I tried amx_memo_add and works BUT the nick was saved without the tag (the tag contains =l ). My question is if that plugin save automatically all the IP and Nick of all the players enter to the server or I must put amx_memo_add ?
Flashhh! is offline
Kenvelo
New Member
Join Date: Mar 2006
Old 03-10-2006 , 11:12  
Reply With Quote #5

It doesn't do this automatically. You must add it. The general idea of the plugin is "I want this IP to be remembered by this tag". Something like that...
Kenvelo is offline
Flashhh!
Senior Member
Join Date: Nov 2005
Old 03-10-2006 , 11:16  
Reply With Quote #6

Quote:
Originally Posted by Kenvelo
It doesn't do this automatically. You must add it. The general idea of the plugin is "I want this IP to be remembered by this tag". Something like that...
Well I just find something similar what I need:
http://forums.alliedmods.net/showthread.php?t=23027
Flashhh! is offline
Dav3
Senior Member
Join Date: Apr 2006
Location: Dust2
Old 08-18-2006 , 16:53   Re: Memo IPs
Reply With Quote #7

21:53:54 [AMXX] Displaying debug trace (plugin "memo.amxx")
21:53:54 [AMXX] Run time error 10: native error (native "write_file")
21:53:54 [AMXX] [0] memo.sma::amx_memo_add (line 255)

Help plz!
Dav3 is offline
Send a message via MSN to Dav3 Send a message via Skype™ to Dav3
Juba_PornBorn1
BANNED
Join Date: Feb 2007
Location: Caracas
Old 03-13-2007 , 23:09   Re: Memo IPs
Reply With Quote #8

Sorry but normally players IPs change all the time and if you put a given IP in the text with the respective nick if that person changes their nick while the IP changed it will not be recognizeble.
Juba_PornBorn1 is offline
pQu
New Member
Join Date: Aug 2010
Old 08-06-2010 , 17:59   Re: Memo IPs
Reply With Quote #9

Is there any way how to make plugin to write automatically each IP which connects to server?
pQu is offline
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 08-07-2010 , 11:09   Re: Memo IPs
Reply With Quote #10

Quote:
Originally Posted by pQu View Post
Is there any way how to make plugin to write automatically each IP which connects to server?

PHP Code:
#include <amxmodx>

public client_putinserverid )
{
    static 
name32 ], ip32 ]
    
get_user_nameidnamecharsmaxname ) )
    
get_user_ipidipcharsmaxip ) )
    
log_amx"Player %s connected. IP: %s"nameip )

__________________
Javivi is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:15.


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