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

[CSGO] PM ( Private Message )


Post New Thread Reply   
 
Thread Tools Display Modes
Author
xSLOW
Senior Member
Join Date: Apr 2019
Location: Romania
Plugin ID:
6657
Plugin Version:
1.1
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Send a private message to a player
    Old 07-23-2019 , 11:59   [CSGO] PM ( Private Message )
    Reply With Quote #1

    Description:
    ➤ A simple plugin to send private messages to another player

    How to install:
    ➤ Download files from github
    ➤ Copy csgo_pm.smx to addons/sourcemod/plugins
    ➤ Change the map or type in console "sm_rcon sm plugins load csgo_pm"

    Commands:
    ➤/pm <#playername> <message> | Send a private message to a player
    ➤ /pmoff | Disable PM's
    ➤ /pmon | Enables PM's

    Download links:
    ➤Direct download: https://github.com/xSL0W/csgo_pm/archive/master.zip
    ➤Github Repo: https://github.com/xSL0W/csgo_pm

    Versions:
    ➤ 1.0 - first release
    ➤ 1.1 - What's new?
    - Bugs fixed ( thanks to Pan32 & Ilusion9)
    - Now you can't send PM's while being muted
    - Now you can see all the logs in addons/sourcemod/logs/pm.txt (including date,steamid,name, etc)
    __________________
    My community:
    https://elitegamers.ro
    https://www.gametracker.com/search/c...elitegamers.ro

    Contact me, fastest way, through my discord server:
    https://discord.gg/SBHzDGbbgG
    xSLOW#0508

    Last edited by xSLOW; 07-25-2019 at 15:49.
    xSLOW is offline
    Ilusion9
    Veteran Member
    Join Date: Jun 2018
    Location: Romania
    Old 07-23-2019 , 12:18   Re: [CSGO] PM ( Private Message )
    Reply With Quote #2

    You should check if the target is different than -1 before checking if the client/target has the pm option disabled.
    g_IsPMon[-1] will throw errors.
    __________________

    Last edited by Ilusion9; 07-23-2019 at 12:18.
    Ilusion9 is offline
    Pan32
    Member
    Join Date: Dec 2010
    Location: ?
    Old 07-23-2019 , 13:57   Re: [CSGO] PM ( Private Message )
    Reply With Quote #3

    Looks like a pretty nice plugin, however, I can see a few issues right off the bat:
    • You should add at least some basic logging, people can be assholes and you, as a server owner, might want to know about it.
    • sm_pm should check BaseComm_IsClientGagged... for pretty obvious reasons.
    • Line 66, you should have the invalid find check after that line, not in line 81 (as Ilusion pointed out)
    • Line 92/93, you can use the special tag %N, eliminating the need of the clientname calls and buffers
    Pan32 is offline
    xSLOW
    Senior Member
    Join Date: Apr 2019
    Location: Romania
    Old 07-23-2019 , 15:15   Re: [CSGO] PM ( Private Message )
    Reply With Quote #4

    Thank you guys for the suggestions, I will fix everything in the next update
    __________________
    My community:
    https://elitegamers.ro
    https://www.gametracker.com/search/c...elitegamers.ro

    Contact me, fastest way, through my discord server:
    https://discord.gg/SBHzDGbbgG
    xSLOW#0508
    xSLOW is offline
    Effeff
    AlliedModders Donor
    Join Date: Jan 2019
    Location: discord: ff#0533
    Old 07-25-2019 , 01:33   Re: [CSGO] PM ( Private Message )
    Reply With Quote #5

    This sounds like it is similar to "sm_psay" from the base sourcemod plugin basechat.

    https://forums.alliedmods.net/showthread.php?t=56764

    Code:
    sm_psay <target> <message>
    A messge is privately sent to the target.
    
    say @@target message
    Using standard chat, this is a shortcut for sm_psay
    
    sm_psay_mode
    Allows non-admins to use the @@alias for sm_psay. Default is off.
    Set to 1 to turn on.
    You do have it so that clients can disable it for themselves, a feature the one in base sourcemod lacks (afaik?). So that's good.

    Last edited by Effeff; 07-25-2019 at 01:36.
    Effeff is offline
    xSLOW
    Senior Member
    Join Date: Apr 2019
    Location: Romania
    Old 07-25-2019 , 04:46   Re: [CSGO] PM ( Private Message )
    Reply With Quote #6

    Quote:
    Originally Posted by Effeff View Post
    This sounds like it is similar to "sm_psay" from the base sourcemod plugin basechat.

    https://forums.alliedmods.net/showthread.php?t=56764

    Code:
    sm_psay <target> <message>
    A messge is privately sent to the target.
    
    say @@target message
    Using standard chat, this is a shortcut for sm_psay
    
    sm_psay_mode
    Allows non-admins to use the @@alias for sm_psay. Default is off.
    Set to 1 to turn on.
    You do have it so that clients can disable it for themselves, a feature the one in base sourcemod lacks (afaik?). So that's good.
    If you use psay you must type something like that:
    sm_psay playername "message bla bla bla"
    With my plugin you dont need to put "", its much easier
    __________________
    My community:
    https://elitegamers.ro
    https://www.gametracker.com/search/c...elitegamers.ro

    Contact me, fastest way, through my discord server:
    https://discord.gg/SBHzDGbbgG
    xSLOW#0508
    xSLOW is offline
    xSLOW
    Senior Member
    Join Date: Apr 2019
    Location: Romania
    Old 07-25-2019 , 15:49   Re: [CSGO] PM ( Private Message )
    Reply With Quote #7

    ➤ 1.1 - What's new?
    - Bugs fixed ( thanks to Pan32 & Ilusion9)
    - Now you can't send PM's while being muted
    - Now you can see all the logs in addons/sourcemod/logs/pm.txt (including date,steamid,name, etc)
    __________________
    My community:
    https://elitegamers.ro
    https://www.gametracker.com/search/c...elitegamers.ro

    Contact me, fastest way, through my discord server:
    https://discord.gg/SBHzDGbbgG
    xSLOW#0508
    xSLOW is offline
    TheBOSS
    Member
    Join Date: Nov 2018
    Old 07-25-2019 , 17:03   Re: [CSGO] PM ( Private Message )
    Reply With Quote #8

    can you add menu select player?
    !pm --> open online players menu --> select player --> write message in chat
    TheBOSS is offline
    aykocity
    Member
    Join Date: Sep 2017
    Old 07-25-2019 , 18:14   Re: [CSGO] PM ( Private Message )
    Reply With Quote #9

    Quote:
    Originally Posted by TheBOSS View Post
    can you add menu select player?
    !pm --> open online players menu --> select player --> write message in chat
    +1
    very good idea
    aykocity is offline
    xSLOW
    Senior Member
    Join Date: Apr 2019
    Location: Romania
    Old 07-27-2019 , 10:46   Re: [CSGO] PM ( Private Message )
    Reply With Quote #10

    Quote:
    Originally Posted by TheBOSS View Post
    can you add menu select player?
    !pm --> open online players menu --> select player --> write message in chat
    seems complicated to do, but I will give it a try
    thanks for suggestions
    __________________
    My community:
    https://elitegamers.ro
    https://www.gametracker.com/search/c...elitegamers.ro

    Contact me, fastest way, through my discord server:
    https://discord.gg/SBHzDGbbgG
    xSLOW#0508
    xSLOW 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 21:41.


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