ZeroMemory(cEKMsg, sizeof(cEKMsg));
//Multiple EK Messages
//Note - Remove section '01' and replace with alternative code for a single message
//Alternative code: wsprintf(cEKMsg, "%s killed %s", cAttackerName, m_pClientList[iClientH]->m_cCharName);
// 01
switch (iDice(1,3))
//You can add extra messages by creating a new case.
//Remember to increase iDice
{
case 1: // To reverse the order the names appear in the message reverse the last 2 parameters
wsprintf(cEKMsg, "%s mato a %s'sin piedad", cAttackerName, m_pClientList[iClientH]->m_cCharName);
break;
case 2:
wsprintf(cEKMsg, "%s le corto a %s's la cabeza", cAttackerName, m_pClientList[iClientH]->m_cCharName);
break;
case 3:
wsprintf(cEKMsg, "%s humillo a %s", m_pClientList[iClientH]->m_cCharName, cAttackerName);
break;
case 4:
wsprintf(cEKMsg, "%s blablabla, pero moriste por %s", m_pClientList[iClientH]->m_cCharName, cAttackerName);
break;
case 5:
wsprintf(cEKMsg, "%s mando a %s al infierno!", cAttackerName, m_pClientList[iClientH]->m_cCharName);
break;
case 6:
wsprintf(cEKMsg, "%s desnudo a by %s , que Sexy!", cAttackerName, m_pClientList[iClientH]->m_cCharName);
break;
case 7:
wsprintf(cEKMsg, "%s OwneD! %s", cAttackerName, m_pClientList[iClientH]->m_cCharName);
break;
case 8:
wsprintf(cEKMsg, "%s le dio a %s por donde mas le duele!!!", cAttackerName, m_pClientList[iClientH]->m_cCharName);
break;
case 9:
wsprintf(cEKMsg, "%s Decis yo te gano, pero moriste por %s", m_pClientList[iClientH]->m_cCharName, cAttackerName);
break;
case 10:
wsprintf(cEKMsg, "%s Aplasto a %s", cAttackerName, m_pClientList[iClientH]->m_cCharName);
break;
}
// 01
for (i = 1; i < DEF_MAXCLIENTS; i++) // Check all clients
{
if ((m_pClientList[i] != NULL)) // Check if client is avtice
{
SendNotifyMsg(NULL, i, DEF_NOTIFY_NOTICEMSG, NULL, NULL, NULL, cEKMsg); // Send message to client
// Log EK
wsprintf(G_cTxt, "%s killed %s", cAttackerName, m_pClientList[iClientH]->m_cCharName); // Log message
PutLogFileList(G_cTxt); // Enter into logs
}
}