Raised This Month: $2 Target: $400
 0% 

Help Covid Mode


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eleonard
New Member
Join Date: Jul 2012
Old 06-20-2020 , 10:37   Help Covid Mode
Reply With Quote #1

hello guys please can you help me with the error to this plugin when compiling

http://www.girlshare.ro/3769933974.4
eleonard is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Location: Muslim and proud!
Old 06-20-2020 , 12:00   Re: Help Covid Mode
Reply With Quote #2

That's a really suspicious link.
__________________
@Jailbreak MOD [Alot of features + API] 100% done !
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Last edited by Natsheh; 06-20-2020 at 12:00.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Old 06-20-2020, 12:02
Grovliom
This message has been deleted by Grovliom.
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-20-2020 , 13:38   Re: Help Covid Mode
Reply With Quote #3

Why do we need to download the plugin from a suspicious website and compile it just to see what errors it (possibly) has?

Post the errors here if you want help. Paste the code directly in your post between [code] or [php] tags.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
AnimalMonster
Member
Join Date: May 2020
Old 06-29-2020 , 23:14   Re: Help Covid Mode
Reply With Quote #4

Quote:
Originally Posted by eleonard View Post
hello guys please can you help me with the error to this plugin when compiling

http://www.girlshare.ro/3769933974.4
wtf is the reapi include???
__________________
A little of scripting makes a MIRACLE.
=============================================
DeclineD#7346 // for everyone who wants a friend..
AnimalMonster is offline
AnimalMonster
Member
Join Date: May 2020
Old 06-29-2020 , 23:15   Re: Help Covid Mode
Reply With Quote #5

Quote:
Originally Posted by eleonard View Post
hello guys please can you help me with the error to this plugin when compiling

http://www.girlshare.ro/3769933974.4
wtf is the reapi include???
PHP Code:
include <amxmodx>
#include <amxmisc>
#include <reapi>

#define AUTO_CREATE_CONFIG //ĐвŃĐľ-ŃĐľĐĐĐĐ˝ĐРконŃĐĐłĐ. (вкĐŃŃĐŃŃŚ ŃĐľĐько ĐŃĐРвкĐŃŃĐĐ˝ ŃĐĐĐĐĽ MASK_ALL_MODE)

#define MULTI_LANGUAGE(%0) fmt("%L", LANG_SERVER, %0)

#define ACCESS_FLAG_MENU (ADMIN_BAN|ADMIN_USER) //Maske menusune erisecek yetkililer

#define MASK_ALL_MODE //Etkinlestirilirse giren herkese otomatik maske verilir

//#define MASK_ACCESS //MASK_ALL_MODE Etkinlestirildiginde calisir (Maske sadece ACCESS_FLAG_MENU kisminda ayarlanilan yetkililere verilir)

new const PLUGIN[] = "COVID mode";
new const 
VERSION[] = "1.0.4";
new const 
AUTHOR[] = "wellasgood";

new const 
MEDICAL_MODEL[] = "models/med-mask.mdl";

new 
ModelEntity[MAX_PLAYERS+1];

#if defined MASK_ALL_MODE
new bool:Check[MAX_PLAYERS+1];

enum _:CVAR_DATA
{
    
MASK_HEALTH_EN,
    
MASK_HEALTH_NUM,
    
MASK_HEALTH_MSG
};

new 
eCvarData[CVAR_DATA], bool:CheckHealth[MAX_PLAYERS+1];
#endif

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
register_dictionary("covid.txt");

    
register_clcmd("say /covid""cmdOpenMenu");
    
register_clcmd("say /cv""cmdOpenMenu");
    
register_clcmd("say /maske""cmdOpenMenu");

    
register_menu("CovidMenu"1023"Handle_CovidMenu"0);

    
#if defined MASK_ALL_MODE
    
RegisterHookChain(RG_CBasePlayer_Spawn"EventSpawn"true);

    
RegCvars();

    
#if defined AUTO_CREATE_CONFIG
    
AutoExecConfig(true"COVID mode");
    
#endif
    #endif
}

#if defined MASK_ALL_MODE
RegCvars()
{
    
bind_pcvar_num(create_cvar(
        .
name "cv_mask_health_en",
        .
string "1",
        .
description MULTI_LANGUAGE("DESCRIPTION_CVAR_HEALTH_EN"),
        .
has_min true,
        .
min_val 0.0,
        .
has_max true,
        .
max_val 1.0),
        
eCvarData[MASK_HEALTH_EN]
    );

    
bind_pcvar_num(create_cvar(
        .
name "cv_mask_health_num",
        .
string "5",
        .
description MULTI_LANGUAGE("DESCRIPTION_CVAR_HEALTH_NUM"),
        .
has_min false,
        .
min_val 0.0,
        .
has_max false,
        .
max_val 0.0),
        
eCvarData[MASK_HEALTH_NUM]
    );

    
bind_pcvar_num(create_cvar(
        .
name "cv_mask_health_msg",
        .
string "1",
        .
description MULTI_LANGUAGE("DESCRIPTION_CVAR_HEALTH_MSG"),
        .
has_min true,
        .
min_val 0.0,
        .
has_max true,
        .
max_val 1.0),
        
eCvarData[MASK_HEALTH_MSG]
    );
}
#endif

public plugin_precache()
{
    if(!
file_exists(fmt("\%s"MEDICAL_MODEL)))
    {
        
set_fail_state(MULTI_LANGUAGE("COVID_ERRROR_MSG"));
    }
    else
    {
        
Model precache_model(MEDICAL_MODEL);
    }
}

#if defined MASK_ALL_MODE
public client_putinserver(PlayerID)
{
    if(
is_user_bot(PlayerID) || is_user_hltv(PlayerID))
    {
        return;
    }

    
Check[PlayerID] = false;

    if(
eCvarData[MASK_HEALTH_EN])
    {
        
CheckHealth[PlayerID] = false;
    }

    
#if defined MASK_ACCESS
    
if(get_user_flags(PlayerID) & ACCESS_FLAG_MENU)
    {
        
CreateEnt(PlayerID);
    }
    
#else
    
CreateEnt(PlayerID);
    
#endif
}

public 
EventSpawn(PlayerID)
{
    if(!
is_user_alive(PlayerID))
    {
        return;
    }

    if(
eCvarData[MASK_HEALTH_EN])
    {
        if(
CheckHealth[PlayerID])
        {
            new 
Float:HP get_entvar(PlayerIDvar_health);
            
set_entvar(PlayerIDvar_healthHP eCvarData[MASK_HEALTH_NUM]);

            if(
eCvarData[MASK_HEALTH_MSG])
            {
                
HealthMsg(PlayerID2);
            }
        }
    }

    if(
Entity[PlayerID] && is_entity(Entity[PlayerID]))
    {
        if(!
Check[PlayerID])
        {
            
SetMask(PlayerID);
        }
    }
}
#endif

public client_disconnected(PlayerID)
{
    
RemoveMask(PlayerID);
}

public 
cmdOpenMenu(PlayerID)
{
    if(
get_user_flags(PlayerID) & ACCESS_FLAG_MENU)
    {
        
CovidMenu(PlayerID);
    }

    return 
PLUGIN_HANDLED;
}

CovidMenu(PlayerID)
{
    new 
Menu[MAX_MENU_LENGTH], Keys MENU_KEY_1|MENU_KEY_0;
    new 
Len formatex(Menucharsmax(Menu), "%L^n^n"PlayerID"COVID_MENU_TITLE");

    
Len += formatex(Menu[Len], charsmax(Menu) - Len"\r[1] \y# \w%L \y[\r%L\y]^n^n"PlayerID"COVID_MENU_ITEM_INFO"PlayerIDEntity[PlayerID] == "COVID_MENU_ITEM_OFF" "COVID_MENU_ITEM_ON");

    
formatex(Menu[Len], charsmax(Menu) - Len"\r[0] \y# \w%L"PlayerID"COVID_MENU_EXIT");
    return 
show_menu(PlayerIDKeysMenu, -1"CovidMenu");
}

public 
Handle_CovidMenu(PlayerIDKeys)
{
    switch(
Keys)
    {
        case 
0:
            {
                if(
Entity[PlayerID] && is_entity(Entity[PlayerID]))
                {
                    
RemoveMask(PlayerID);

                    
#if defined MASK_ALL_MODE
                    
Check[PlayerID] = false;

                    if(
eCvarData[MASK_HEALTH_EN])
                    {
                        
CheckHealth[PlayerID] = true;
                        
HealthMsg(PlayerID1);
                    }
                    
#endif
                
}
                else
                {
                    
CreateEnt(PlayerID);
                    
SetMask(PlayerID);

                    
#if defined MASK_ALL_MODE
                    
Check[PlayerID] = true;

                    if(
eCvarData[MASK_HEALTH_EN])
                    {
                        
CheckHealth[PlayerID] = false;
                        
HealthMsg(PlayerID1);
                    }
                    
#endif
                
}
            }
        case 
9:
            {
                return 
PLUGIN_HANDLED;
            }
    }

    
CovidMenu(PlayerID);
    return 
PLUGIN_HANDLED;
}

SetMask(PlayerID)
{
    
set_entvar(Entity[PlayerID], var_body0);
}

RemoveMask(PlayerID)
{
    if(
Entity[PlayerID] && is_entity(Entity[PlayerID]))
    {
        
set_entvar(Entity[PlayerID], var_flagsFL_KILLME);
        
set_entvar(Entity[PlayerID], var_nextthinkget_gametime());
        
Entity[PlayerID] = 0;
    }
}

CreateEnt(PlayerID)
{
    if((
Entity[PlayerID] = rg_create_entity("info_target")))
    {
        
set_entvar(Entity[PlayerID], var_classname"_covid_medical_mask");
        
set_entvar(Entity[PlayerID], var_modelMEDICAL_MODEL);
        
set_entvar(Entity[PlayerID], var_modelindexModel);
        
set_entvar(Entity[PlayerID], var_movetypeMOVETYPE_FOLLOW);
        
set_entvar(Entity[PlayerID], var_aimentPlayerID);
    }
}

#if defined MASK_ALL_MODE
HealthMsg(PlayerIDnum)
{
    
client_print_color(PlayerIDprint_team_default"%l"num == "COVID_HEALTH_MSG_PRE" "COVID_HEALTH_MSG_POST"eCvarData[MASK_HEALTH_NUM]);
}
#endif 
__________________
A little of scripting makes a MIRACLE.
=============================================
DeclineD#7346 // for everyone who wants a friend..
AnimalMonster is offline
AnimalMonster
Member
Join Date: May 2020
Old 06-29-2020 , 23:16   Re: Help Covid Mode
Reply With Quote #6

Please post the inc here
__________________
A little of scripting makes a MIRACLE.
=============================================
DeclineD#7346 // for everyone who wants a friend..
AnimalMonster is offline
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 06-30-2020 , 11:04   Re: Help Covid Mode
Reply With Quote #7

I think google can be your best friend sometimes
Attached Files
File Type: zip Reapi_publish_5.15.0.197_artifacts (2).zip (312.7 KB, 1 views)
__________________
Private Work! || Discord:
Mr_Boopsy_#2066
supertrio17 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 15:33.


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