Raised This Month: $32 Target: $400
 8% 

OpenMenu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ho83
Senior Member
Join Date: Aug 2020
Location: iran
Old 11-05-2020 , 21: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 , 21: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");

__________________
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 , 06: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 , 09: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");
    }

__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
ho83
Senior Member
Join Date: Aug 2020
Location: iran
Old 11-06-2020 , 09:38   Re: OpenMenu
Reply With Quote #5

Thanks Sir.

Last edited by ho83; 11-06-2020 at 09:38.
ho83 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 19:48.


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