AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   OpenMenu (https://forums.alliedmods.net/showthread.php?t=328349)

ho83 11-05-2020 22:10

OpenMenu
 
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.

Napoleon_be 11-05-2020 22:28

Re: OpenMenu
 
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");



ho83 11-06-2020 07:07

Re: OpenMenu
 
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 :x
Sorry For my bad english

Supremache 11-06-2020 10:15

Re: OpenMenu
 
Quote:

Originally Posted by Napoleon_be (Post 2723863)
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");
    }




ho83 11-06-2020 10:38

Re: OpenMenu
 
Thanks Sir. :)


All times are GMT -4. The time now is 00:45.

Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.