View Single Post
ecca
Sexy Santa
Join Date: Jan 2011
Old 02-24-2013 , 17:00   Re: [CS:GO] NotifyMOTD
Reply With Quote #4

Why do like this

PHP Code:
public PerformMOTD(clienttarget) {
    if (
client != target) {
         new 
String:clientName[32];
         new 
String:targetName[32];

        
GetClientName(clientclientName31);        
        
GetClientName(targettargetName31);
        
        
PrintToChatAll("\x01 \x07[MOTD] \x07%s \x07%s \x07%s \x07%s",clientName,"thinks that",targetName,"needs to read the rules!");
        
    }
    new 
String:MOTDURL[128];
    
GetConVarString(RulesURLMOTDURLsizeof(MOTDURL));
    
    
ShowMOTDPanel(target"Rules"MOTDURLMOTDPANEL_TYPE_URL);

when you can do like this

PHP Code:
public PerformMOTD(clienttarget
{
    if (
client != target) {
        
PrintToChatAll("\x01 \x07[MOTD] %N thinks that %N needs to read the rules!"clienttarget);
        
    }
    new 
String:MOTDURL[128];
    
GetConVarString(RulesURLMOTDURLsizeof(MOTDURL));
    
    
ShowMOTDPanel(target"Rules"MOTDURLMOTDPANEL_TYPE_URL);

__________________

Last edited by ecca; 02-24-2013 at 17:01.
ecca is offline