Why do like this
PHP Code:
public PerformMOTD(client, target) {
if (client != target) {
new String:clientName[32];
new String:targetName[32];
GetClientName(client, clientName, 31);
GetClientName(target, targetName, 31);
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(RulesURL, MOTDURL, sizeof(MOTDURL));
ShowMOTDPanel(target, "Rules", MOTDURL, MOTDPANEL_TYPE_URL);
}
when you can do like this
PHP Code:
public PerformMOTD(client, target)
{
if (client != target) {
PrintToChatAll("\x01 \x07[MOTD] %N thinks that %N needs to read the rules!", client, target);
}
new String:MOTDURL[128];
GetConVarString(RulesURL, MOTDURL, sizeof(MOTDURL));
ShowMOTDPanel(target, "Rules", MOTDURL, MOTDPANEL_TYPE_URL);
}
__________________