Raised This Month: $ Target: $400
 0% 

Plugin connect message problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
andre2843
Member
Join Date: Apr 2011
Old 03-10-2015 , 18:17   Plugin connect message problem
Reply With Quote #1

I have problem this plugin what solution,plugin not print in chat please help-me.

PHP Code:
#include <sourcemod> 
#include <geoip> 
#include <colors> 

#define PL_VERSION "1.0" 

public Plugin:myinfo =  

    
name "Connect Message"
    
author ""
    
description ""
    
version PL_VERSION
    
url "" 
}; 

public 
OnPluginStart() 

    
CreateConVar("sm_conn_msg_ver"PL_VERSION"Connect Msg Version"FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY); 

    for (new 
1<= MaxClientsi++) { 
        if (!
IsClientInGame(i) || IsFakeClient(i)) 
            continue; 
         
        
OnClientPostAdminCheck(i); 
    } 


public 
OnClientPostAdminCheck(client)  

    new 
String:sName[32], String:sIP[17], String:sGeoIP[64], String:sAuth[33]; 

    
GetClientAuthString(clientsAuthsizeof(sAuth)); 
    
GetClientIP(clientsIPsizeof(sIP)); 
    
GeoipCountry(sIPsGeoIPsizeof(sGeoIP)); 
    
GetClientName(clientsName32); 

    
CPrintToChatAll("{limie}%N {default}({purple}%s{default}) connected from {green}%s"sNamesAuthsGeoIP); 

__________________
.

Last edited by andre2843; 03-10-2015 at 18:19.
andre2843 is offline
 



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 12:11.


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