Untitled

mail@pastecode.io avatar
unknown
plain_text
23 days ago
414 B
2
Indexable
Never
void SendCmd2(EnetPeer* peer, string cmd) {
	transform(cmd.begin(), cmd.end(), cmd.begin(), ::tolower);
	if (cmd.find("player_chat=") != string::npos) return;
	logs(pi(peer)->tankIDName + " used " + cmd + " (" + pi(peer)->world + ")");
	if (cmd == "test1") {

	}
	else if (cmd == "test2") {

	}
	else packet_(peer, "action|log\nmsg|`4Unknown command.``  Enter `$/?`` for a list of valid commands.");
}
Leave a Comment