Topic: how to make /call command
please help me:
i in channel A
when i type the "/call HARPYWAR" Command.
how to move another user from channel B to channel A
thanks
PvPGN Community Forums |
forums.pvpgn.pro → [RU] The Source Code → how to make /call command
please help me:
i in channel A
when i type the "/call HARPYWAR" Command.
how to move another user from channel B to channel A
thanks
I guess it is not possible.
User can join/left channel. Server can only kick a user from a channel.
Did you see the same functionality somewhere?
please help me:
i in channel A
when i type the "/call HARPYWAR" Command.
how to move another user from channel B to channel A
thanks
WOW
I think it is not possible.
because user can join channel A cannel B alone
because it is not important
so close the topic
I think it is not possible.
because user can join channel A cannel B alone
because it is not important
so close the topic
/call is possible. very very possible.
this my command on my pvpgn:
/call <user> <-- call user to your channel
/move <user> <channel> <-- moving another user to anoother channel
/maho <user> <channel> <-- you and user joining same channel
/meet <-- for call all online crew to channel "Crew" for 1 secon join
/follow <-- Following user in channel
Zeloit, it will be great if you share code of these commands.
It seems, the function conn_set_channel moves user to a channel.
i feel you not share mad because it is very important and very rare(langkah)
you must selling to the people mad with price hight
oke
static int _handle_call_command(t_connection * c, char const * text) //KMC724
{
t_connection * user;
text = skip_command(text);
if (text[0]=='\0') {
message_send_text(c,message_type_info,c,"usage: /call <username>");
return 0;
}
if (!(user = connlist_find_connection_by_accountname(text))) {
message_send_text(c,message_type_error,c,"Not connect user");
return 0;
} else {
conn_set_channel(user,channel_get_name(conn_get_channel(c)));
return 0;
}
}
I'm newbie so This may not working.. (Not test)
forums.pvpgn.pro → [RU] The Source Code → how to make /call command