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

[CS:GO] Team Join Announce


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Markiez
Junior Member
Join Date: Mar 2018
Location: somewhere over the rainb
Plugin ID:
6085
Plugin Version:
1.0
Plugin Category:
Server Management
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugin provides information in the chat for when players join a team.
    Old 04-11-2018 , 15:29   [CS:GO] Team Join Announce
    Reply With Quote #1

    Team Join Announce
    Discord: http://discords.pw/nerpcsgo
    This plugin provides information in the chat for when players join a team.

    There's not much "information", other than the name of the client, aswell as the country he connects from. I've had some private plugins on my list, just never released them yet, because I thought it wouldn't be a good idea for me to release it because I wanted to be one of a kind using this plugin.
    (from what I know, I'm the only one.) Enjoy this release.


    Requirements:
    • Sourcemod 1.8 or higher.
      SDKtools, Geoip & Cstrike for compiling


    Installation:
    Simply just drag & drop the .smx file into: addons/sourcemod/plugins. Unless you want to make your own version of this release, you just copy the code & start . Let me know if you can make it better than I could :/ xD

    Build:
    The build is very simplistic, I use this method to get the client's team if it selects team CT and have it hooked up to player_team with a timer on 0.2 secconds.

    Code:
    if(GetClientTeam(client) == CS_TEAM_CT)
    {
    	new String:name[99], String:IP[99], String:Country[99];
    		
    	GetClientName(client, name, sizeof(name));
    		
    	GetClientIP(client, IP, sizeof(IP), true);
    		
    	if(!GeoipCountry(IP, Country, sizeof Country))
    	{
    		Country = "Unknown Country";
    	} 
    	
    	PrintToChatAll(" + \x03%s \x01has joined the \x0BCT-Team \x01from \x04%s", name, Country);
    }
    Have fun with the release!
    My goals in life:
    • Become a knowledgeable coder.
    • Get a girlfriend & hopefully married.
    • Become the student of the year in class.
    • Never skip school because of an injury.
    • Have fun with friends
    Attached Files
    File Type: sp Get Plugin or Get Source (Team Join Announce.sp - 1478 views - 2.4 KB)
    Markiez is offline
    Markiez
    Junior Member
    Join Date: Mar 2018
    Location: somewhere over the rainb
    Old 04-11-2018 , 15:35   Re: [CS:GO] Team Join Announce
    Reply With Quote #2

    https://forums.alliedmods.net/showthread.php?p=2317313
    This plugin has used some of this code, getting countries. Cred to this dude.
    Markiez is offline
    Nexd
    BANNED
    Join Date: Dec 2013
    Location: Hungary
    Old 04-22-2018 , 10:37   Re: [CS:GO] Team Join Announce
    Reply With Quote #3

    Uhm its nice, but when the game switch teams at halftime its spam the chat
    Nexd is offline
    potatoz
    AlliedModders Donor
    Join Date: Nov 2016
    Old 04-23-2018 , 10:57   Re: [CS:GO] Team Join Announce
    Reply With Quote #4

    Quote:
    Originally Posted by Markiez View Post
    https://forums.alliedmods.net/showthread.php?p=2317313
    This plugin has used some of this code, getting countries. Cred to this dude.
    Well, there is quite literally only one way to get countries so it's not an exclusive to him.

    Anyhow, some comments to the author; the plugin is quite messy and has some unnecessary coding. For instance i don't get why you fetch the users ip & country within the disconnect-message if you're not using it there anyway, and you don't need to get the users name, ip & country twice during "Timer_DelayTeam".

    I'm not hating if that's what you think either i'm trying to give constructive feedback considering you wish to become a knowledgeable coder. I'm gonna attach a modified version of your plugin and i suggest you check it for help. Also one final thing, is it supposed to not show the message if you're dead? I'm pretty sure you die when changing team so that would block the message from being sent out in most cases

    /P
    Attached Files
    File Type: sp Get Plugin or Get Source (teamjoinannounce.sp - 768 views - 1.5 KB)
    __________________
    potatoz is offline
    Markiez
    Junior Member
    Join Date: Mar 2018
    Location: somewhere over the rainb
    Old 05-05-2018 , 16:38   Re: [CS:GO] Team Join Announce
    Reply With Quote #5

    Quote:
    Originally Posted by potatoz View Post
    Well, there is quite literally only one way to get countries so it's not an exclusive to him.

    Anyhow, some comments to the author; the plugin is quite messy and has some unnecessary coding. For instance i don't get why you fetch the users ip & country within the disconnect-message if you're not using it there anyway, and you don't need to get the users name, ip & country twice during "Timer_DelayTeam".

    I'm not hating if that's what you think either i'm trying to give constructive feedback considering you wish to become a knowledgeable coder. I'm gonna attach a modified version of your plugin and i suggest you check it for help. Also one final thing, is it supposed to not show the message if you're dead? I'm pretty sure you die when changing team so that would block the message from being sent out in most cases

    /P
    Really appreciate the feedback!
    blis add me on steam though, wanna talk lil bit if that's fine: http://steamcommunity.com/profiles/76561198834179701/
    Markiez 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 07:07.


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