Raised This Month: $106 Target: $400
 26% 

OpenMenu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ho83
Senior Member
Join Date: Aug 2020
Location: iran
Old 11-05-2020 , 22:10   OpenMenu
Reply With Quote #1

Hi.Whats Up. Well I Have a Jailbreak Mod on my sv. I want ClassMenu opens when players join the CT team. Idont Know. maybe i mean When Join Ct Say:/class Automatically.Thank You.
ho83 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 11-05-2020 , 22:28   Re: OpenMenu
Reply With Quote #2

PHP Code:
/* Sublime AMXX Editor v2.2 */

#include <amxmodx>
// #include <amxmisc>
// #include <cstrike>
// #include <engine>
// #include <fakemeta>
#include <hamsandwich>
// #include <fun>
// #include <xs>
// #include <sqlx>

#define PLUGIN  "New Plug-In"
#define VERSION "1.0"
#define AUTHOR  "Author"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);

    
register_event("TextMsg""PlayerJoinedCt""a""2&#Game_join_ct");
}

public 
PlayerJoinedCt() {
    new 
id read_data(1);

    
client_cmd(id"say /class");

__________________
My Plugins:


Accepting private projects.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
ho83
Senior Member
Join Date: Aug 2020
Location: iran
Old 11-06-2020 , 07:07   Re: OpenMenu
Reply With Quote #3

Hello . Thank You .But I Have a problem with this Bro. Actually I want when Some Body Join Ct And Revived Say:/class. But now When You Join Ct You say class before you revived. Thanks fix it for me
Sorry For my bad english
ho83 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 11-06-2020 , 10:15   Re: OpenMenu
Reply With Quote #4

Quote:
Originally Posted by Napoleon_be View Post
PHP Code:
#include <amxmodx>
#include <hamsandwich>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_Spawn"player""PlayerSpawnPost"1)
    
register_event("TextMsg""PlayerJoinedCt""a""2&#Game_join_ct");

}

public 
PlayerJoinedCt() {
    new 
id read_data(1);

    
client_cmd(id"say /class");


public 
PlayerSpawnPost(id)
{
    if (
is_user_alive(id))
    {
        
client_cmd(id"say /class");
    }

__________________
Supremache is offline
ho83
Senior Member
Join Date: Aug 2020
Location: iran
Old 11-06-2020 , 10:38   Re: OpenMenu
Reply With Quote #5

Thanks Sir.

Last edited by ho83; 11-06-2020 at 10:38.
ho83 is offline
Reply


Thread Tools
Display Modes

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 20:22.


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