Raised This Month: $ Target: $400
 0% 

Client on connect open menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xunfop
Member
Join Date: Mar 2012
Location: 97Club
Old 11-22-2014 , 01:00   Re: Client on connect open menu
Reply With Quote #1

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
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 17:42.


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