Raised This Month: $51 Target: $400
 12% 

Client on connect open menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hardboy
Member
Join Date: Jun 2014
Location: Greece
Old 11-21-2014 , 12:56   Client on connect open menu
Reply With Quote #1

Code:
#include <amxmodx>

public plugin_init() {
	register_plugin("connect", "1.0", "hardboy")
}

public client_connect(id)
{
	client_cmd(id, "menusurf")
}
I dont have problem and running normal.

on connect to my server, menu has not openning please help ((((
hardboy is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 11-21-2014 , 12:57   Re: Client on connect open menu
Reply With Quote #2

try client_putinserver task 5sec
__________________
kiki33hun is offline
ghost95v
Senior Member
Join Date: Apr 2014
Location: somewhere in universe
Old 11-21-2014 , 12:58   Re: Client on connect open menu
Reply With Quote #3

use set_task
__________________
ghost95v is offline
Send a message via Skype™ to ghost95v
hardboy
Member
Join Date: Jun 2014
Location: Greece
Old 11-21-2014 , 13:08   Re: Client on connect open menu
Reply With Quote #4

Code:
#include <amxmodx>
#unclude <functions>

public plugin_init() {
	register_plugin("connect", "1.0", "hardboy")
}

public client_putinserver(id)
{
	client_cmd(id, "menusurf")
}
this?
You can script this?
i dont remember this...
hardboy is offline
plazma
Senior Member
Join Date: Oct 2013
Old 11-21-2014 , 13:35   Re: Client on connect open menu
Reply With Quote #5

Quote:
Originally Posted by hardboy View Post
Code:
#include <amxmodx>
#unclude <functions>

public plugin_init() {
    register_plugin("connect", "1.0", "hardboy")
}

public client_putinserver(id)
{
    client_cmd(id, "menusurf")
}
this?
You can script this?
i dont remember this...

PHP Code:
#include <amxmodx>
#unclude <functions>

public plugin_init() {
    
register_plugin("connect""1.0""hardboy")
}

public 
client_putinserver(id)
{
    
set_task(5.0"menusurf",id// for 5 seconds and menu open...
}

public 
menusurf(id)
{
   
client_cmd(id"say /surfmenu"// ex your menu code say ...

__________________
Free Palestine ♥

Last edited by plazma; 11-21-2014 at 13:37.
plazma is offline
hardboy
Member
Join Date: Jun 2014
Location: Greece
Old 11-21-2014 , 13:47   Re: Client on connect open menu
Reply With Quote #6

thanks
hardboy is offline
Xunfop
Member
Join Date: Mar 2012
Location: 97Club
Old 11-22-2014 , 01:00   Re: Client on connect open menu
Reply With Quote #7

Quote:
Originally Posted by plazma View Post
PHP Code:
#include <amxmodx>
#unclude <functions>

public plugin_init() {
    
register_plugin("connect""1.0""hardboy")
}

public 
client_putinserver(id)
{
    
set_task(5.0"menusurf",id// for 5 seconds and menu open...
}

public 
menusurf(id)
{
   
client_cmd(id"say /surfmenu"// ex your menu code say ...

why not just
PHP Code:
#include <amxmodx>
#unclude <functions>

public plugin_init() {
    
register_plugin("connect""1.0""hardboy")
}

public 
client_putinserver(id)
{
    
set_task(5.0"menusurf",id)

use client_cmd call it is not necessary
Xunfop is offline
red_bull2oo6
Senior Member
Join Date: Mar 2012
Location: Braila, Romania
Old 11-22-2014 , 07:22   Re: Client on connect open menu
Reply With Quote #8

@Xunfop it'll throw an error with function not found.
__________________

My PC Themes . .
red_bull2oo6 is offline
Xunfop
Member
Join Date: Mar 2012
Location: 97Club
Old 11-24-2014 , 05:32   Re: Client on connect open menu
Reply With Quote #9

Quote:
Originally Posted by red_bull2oo6 View Post
@Xunfop it'll throw an error with function not found.
Are you kidding?
Xunfop is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 11-24-2014 , 05:39   Re: Client on connect open menu
Reply With Quote #10

What is this?
Quote:
#unclude <functions>
zmd94 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode