Skip to forum content

You are not logged in. Please login or register.


forums.pvpgn.pro → [RU] The Source Code → how to make /call command

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 10

1

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

2

Re: how to make /call command

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?

Do not ask for support in PM.

3

Re: how to make /call command

Samz wrote:

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

4

Re: how to make /call command

I think it is not possible.

because user can join channel A cannel B alone

because it is not important

so close the topic

roll

5 (edited by Zeloit 17.06.2013 16:53)

Re: how to make /call command

goku wrote:

I think it is not possible.

because user can join channel A cannel B alone

because it is not important

so close the topic

roll

/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

6

Re: how to make /call command

Zeloit, it will be great if you share code of these commands.

It seems, the function conn_set_channel moves user to a channel.

Do not ask for support in PM.

7

Re: how to make /call command

Share The Code , Zeloit  smile

8

Re: how to make /call command

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

9

Re: how to make /call command

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)

10

Re: how to make /call command

command private , not publication

Posts: 10

Pages 1

You must login or register to post a reply

Who now at forum

Currently view post: 1 guest, 0 registered users

forums.pvpgn.pro → [RU] The Source Code → how to make /call command



Generated in 0.090 seconds (81% PHP - 19% DB) with 20 queries