if(!str_comp(pMsg->m_pMessage, "/infammo")) {
if(!pPlayer->m_InfAmmo)
{
pPlayer->m_InfAmmo = true;
SendChatTarget(ClientID, "Infinite ammo was turned on :)");
}
else
{
pPlayer->m_InfAmmo = false;
SendChatTarget(ClientID, "Infinite ammo was turned off :(");
}
}
else SendChatTarget(ClientID, "Wrong command :/");
(edited)if (m_pCharacter)
delete m_pCharacter;