Raised This Month: $51 Target: $400
 12% 

Reports System v3.1 [UPDATED 07/21/2019]


Post New Thread Reply   
 
Thread Tools Display Modes
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 09-25-2018 , 12:39   Re: Contact Owner [Helping Tool] v1.1
Reply With Quote #31

Quote:
Originally Posted by DJEarthQuake View Post
#Edon. Make it so it costs to send message. That is within your comfort zone and will control plugin abuse. The plugin I was referring to early post was as adminmod plugin: Updated: Leave messages for *specific* clients as they connect.
This old AMX work reminds me of your style, PostMessage where it charges user to POST messages on server.
I don't like the idea of paying to send a message. I'll simply add a feature so you can specify how many messages a player can send each day.
__________________
edon1337 is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 09-25-2018 , 12:49   Re: Contact Owner [Helping Tool] v1.1
Reply With Quote #32

I'm pleased you have no interest in it as I have. Isn't there a way to do this without ➾ nVault Array
➾ nVault Utility? That was my first untold impression of this work.
__________________
DJEarthQuake is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-25-2018 , 13:15   Re: Contact Owner [Helping Tool] v1.1
Reply With Quote #33

Quote:
Originally Posted by DJEarthQuake View Post
I'm pleased you have no interest in it as I have. Isn't there a way to do this without ➾ nVault Array
➾ nVault Utility? That was my first untold impression of this work.
What would be the advantage?
__________________
HamletEagle is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 09-25-2018 , 14:35   Re: Contact Owner [Helping Tool] v1.1
Reply With Quote #34

or make option to write a subject before the whole saved message...so at the menu stamp Nick + Subject (like PMs)..so no worries about lenght
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)

Last edited by JocAnis; 09-25-2018 at 14:36.
JocAnis is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 09-25-2018 , 14:42   Re: Contact Owner [Helping Tool] v1.1
Reply With Quote #35

Quote:
Originally Posted by JocAnis View Post
or make option to write a subject before the whole saved message...so at the menu stamp Nick + Subject (like PMs)..so no worries about lenght
Nice idea, I'm adding that.
__________________
edon1337 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 09-25-2018 , 15:29   Re: Contact/Ticket System v1.2
Reply With Quote #36

* UPDATED TO V1.2

CHANGELOG:

Code:
* v1.2 *
              • Added Mark as Read/Archive/View options
              • Added feature to see when the message was read and by whom
              • Added option to temporarily Archive messages and bring them back whenever you want
              • Changed the menu style
              • Added feature to automatically notice the owners on connect about new messages
              • Added feature to notice online owners when a new message is created/sent.

To Do:

Code:
* Add Answering option
* Make MOTD more stylish
* Add option to limit player messages in a day
__________________

Last edited by edon1337; 09-25-2018 at 15:30.
edon1337 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-25-2018 , 18:29   Re: Contact Owner [Helping Tool] v1.1
Reply With Quote #37

Quote:
Originally Posted by edon1337 View Post
Ok thank you. I don't really have time to learn new things till I finish all my exams (probably December).

@Bugsy

Is nvault_set_array meant to push new entries or edit existing entries?
Both. It follows the same principle as nVault -- if the key exists, it updates, if the key does not exist, its an add.

SQL isn't bad, I can set up the tables, write the queries and give you a framework for submitting and processing queries.

When I view a message, it still says 'Read: No'. It only changes to Yes when I select 'Mark As Read'. It should change to yes when I choose View or Mark As Read.

PHP Code:
public client_putinserverid )
{
    if( ~ 
get_user_flagsid ) & FLAG_VIEW )
    {
        return 
PLUGIN_HANDLED;
    }

    
set_task3.0"OnInformTask"id TASK_INFORM );
    return 
PLUGIN_CONTINUE;
}
--->
public client_putinserverid )
{
    if ( 
get_user_flagsid ) & FLAG_VIEW )
    {
        
//May want to consider making the delay longer, like 7 or 10 seconds 
        //OR display this to him on the first round start event after he connects. 
        //This way it doesn't get missed if he connects and then goes to get a beer.
        
set_task3.0"OnInformTask"id TASK_INFORM );
    }

Fix indenting:
Code:
enum _:MessageStruct {     Message_Text[ 192 ],     Message_Title[ 64 ],     Message_Sender[ 32 ],     Message_Reader[ 32 ],     Message_TimeStamp,     Message_ReadTime,
bool:Message_Read,
bool:Message_Removed
};     switch( iItem )     {
    case ITEM_VIEW:
        {            }
    case ITEM_UNARCHIVE:
        {         }     }
__________________

Last edited by Bugsy; 09-25-2018 at 18:49.
Bugsy is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 09-25-2018 , 19:17   Re: Contact/Ticket System v1.2
Reply With Quote #38

Advantage #1 Message being spendy (in whatever units, TOS and money to show active player) eliminates flooding. Advantage #2 Fun. Name how cost is disadvantageous option somewhere down the line or why not for another mod? Actually I see now unless it is counter-strike only it's useless for serious admin. This evolved into ticketing system. That can be quite useful for those who run like 200+ plugins! You will get a life time amount of business. The double limiter idea, like a core # msgs per day like you say and some other or total of 3 controls is just a possible safe guard to play around with. As you can see that knife mod you made brought me back to admin_money. Now that's way before Ben had $$! Keep it up man.
__________________

Last edited by DJEarthQuake; 09-25-2018 at 22:01. Reason: Don't let this guy stab you on his server!
DJEarthQuake is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 09-26-2018 , 10:08   Re: Contact Owner [Helping Tool] v1.3
Reply With Quote #39

Quote:
Originally Posted by Bugsy View Post
SQL isn't bad, I can set up the tables, write the queries and give you a framework for submitting and processing queries.
If you're willing to write the code and I use it, why not. But still, I'd have no idea how to support that code.

Quote:
Originally Posted by Bugsy View Post
When I view a message, it still says 'Read: No'. It only changes to Yes when I select 'Mark As Read'. It should change to yes when I choose View or Mark As Read.
Fixed.

Quote:
Originally Posted by Bugsy View Post
Both. It follows the same principle as nVault -- if the key exists, it updates, if the key does not exist, its an add.

SQL isn't bad, I can set up the tables, write the queries and give you a framework for submitting and processing queries.

When I view a message, it still says 'Read: No'. It only changes to Yes when I select 'Mark As Read'. It should change to yes when I choose View or Mark As Read.

PHP Code:
public client_putinserverid )
{
    if( ~ 
get_user_flagsid ) & FLAG_VIEW )
    {
        return 
PLUGIN_HANDLED;
    }

    
set_task3.0"OnInformTask"id TASK_INFORM );
    return 
PLUGIN_CONTINUE;
}
--->
public client_putinserverid )
{
    if ( 
get_user_flagsid ) & FLAG_VIEW )
    {
        
//May want to consider making the delay longer, like 7 or 10 seconds 
        //OR display this to him on the first round start event after he connects. 
        //This way it doesn't get missed if he connects and then goes to get a beer.
        
set_task3.0"OnInformTask"id TASK_INFORM );
    }

I made a better way, by showing a menu on first spawn.

Quote:
Originally Posted by Bugsy View Post
Fix indenting:
Code:
enum _:MessageStruct {     Message_Text[ 192 ],     Message_Title[ 64 ],     Message_Sender[ 32 ],     Message_Reader[ 32 ],     Message_TimeStamp,     Message_ReadTime,
bool:Message_Read,
bool:Message_Removed
};     switch( iItem )     {
    case ITEM_VIEW:
        {            }
    case ITEM_UNARCHIVE:
        {         }     }
It's NotePad++'s problem, not mine. For some reason tagged variables such as bool and float don't get indented on enums and I don't know about switch().
__________________
edon1337 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 09-26-2018 , 10:11   Re: Contact/Ticket System v1.3
Reply With Quote #40

* UPDATED TO V1.3

CHANGELOG:

Code:
* v1.3 *
              • Fixed Marking as Seen
              • Added menu to pop up on first spawn showing new message notification
              • Fixed a problem that wasn't showing 'No messages to display' when there was 0 messages and there was one/more archived.
__________________

Last edited by edon1337; 09-26-2018 at 10:11.
edon1337 is offline
Reply



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 13:48.


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