Hello folks, i ran out of luck again.
I've finished my private jailbreak plugin. But my method with HLTV:
PHP Code:
register_event("HLTV", "event_new_round", "a", "1=0", "2=0");
seem to only work in non-jailbreak servers. Becouse jailbreak uses custom messages code:
PHP Code:
public message_TextMsg( const MsgId, const MsgDest, const MsgEntity )
{
static message[32]
get_msg_arg_string(2, message, charsmax(message))
if(equal(message, "#Terrorists_Win"))
{
set_msg_arg_string(2, "Villains(idk ppl in jail) win!")
}
else if(equal(message, "#CTs_Win"))
{
set_msg_arg_string(2, "Prison guards win!")
}
}
Ive translated the messages sent, but i believe they dont actually matter.
So how shall i get my event_new_round, with these messages? :/
I've tired this:
PHP Code:
register_event("HLTV", "event_new_round_ct", "a", "#CTs_Win", "2=0")
register_event("HLTV", "event_new_round_t", "a", "#Terrorists_Win", "2=0")
Since i dont have a clue how the hltv gets it, please help me!