AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [CSGO] Thanos mode (https://forums.alliedmods.net/showthread.php?t=309190)

drespy 07-16-2018 18:38

[CSGO] Thanos mode
 
Hello everyone, I look for a plugin in which only admins, type! thanos, and become in the thanos, receive 200 of life,200 armour, and
a freeze of 30 seconds, a message in the chat saying: Thanos will appear in 30 seconds...

after he turns the thanos gets a knife with 1000 damage, and has a long jump every 10 seconds by holding E

Thanos Model: https://drive.google.com/file/d/1LIC...1GLQZm1hn/view by Kaesar

*the command can be used only once per round

Thanks...

ASKER_CZ 07-16-2018 18:45

Re: [CSGO] Thanos mode
 
That model Is hilarious . It just seems that someone has just removed logo of my server from thé back . Funny how Is everyone stealing from each other

drespy 07-16-2018 18:53

Re: [CSGO] Thanos mode
 
Quote:

Originally Posted by ASKER_CZ (Post 2604088)
That model Is hilarious . It just seems that someone has just removed logo of my server from thé back . Funny how Is everyone stealing from each other


I did not understand...

mug1wara 07-16-2018 18:56

Re: [CSGO] Thanos mode
 
try this
PHP Code:

#include <sourcemod>
#include <sdktools>

#pragma semicolon 1

char g_sModel[] = "models/player/custom_player/kaesar2018/thanos/thanos.mdl";

public 
void OnPluginStart()
{
    
RegAdminCmd("sm_thanos"Cmd_ThanosADMFLAG_GENERIC);
}

public 
void OnMapStart()
{
    
AddFileToDownloadsTable(g_sModel);
    
    
PrecacheModel(g_sModel);
}

public 
Action Cmd_Thanos(int iClientint iArgs)
{
    
PrintToChatAll("Thanos will appear in 30 secconds!");
    
    
SetEntityModel(iClientg_sModel);
    
    
SetEntityHealth(iClient200);
    
    
SetEntProp(iClientProp_Data"m_ArmorValue"2001);
    
    
SetEntityModel(iClientg_sModel);
    
    
int iFlags GetEntProp(iClientProp_Send"m_fFlags");
    
    
iFlags |= FL_FROZEN;
    
    
CreateTimer(30.0Timer_UnfreezeiClient);
}

public 
Action Timer_Unfreeze(Handle hTimerint iClient)
{
    
int iFlags GetEntProp(iClientProp_Send"m_fFlags");
    
    
iFlags &= ~FL_FROZEN;
    
    return 
Plugin_Continue;



drespy 07-16-2018 19:06

Re: [CSGO] Thanos mode
 
Quote:

Originally Posted by mug1wara (Post 2604092)
try this
PHP Code:

#include <sourcemod>
#include <sdktools>

#pragma semicolon 1

static int g_iModel;

static const 
char g_sModel[] = "models/player/custom_player/kaesar2018/thanos/thanos.mdl";

float g_fTime[MAXPLAYERS 1];

methodmap Thanos
{
    public static 
int Precache()
    {
        
g_iModel PrecacheModel(g_sModel);
        
        if (
g_iModel == 0)
        {
            
ThrowError("Precache Failed!");
        }
    }
};

public 
void OnPluginStart()
{
    
RegAdminCmd("sm_thanos"Cmd_ThanosADMFLAG_GENERIC);
}

public 
void OnMapStart()
{
    
AddFileToDownloadsTable(g_sModel);
}

public 
Action Cmd_Thanos(int iClientint iArgs)
{
    
Thanos.Precache();
    
    
SetEntityModel(iClientg_sModel);
    
    
SetEntityHealth(iClient200);
    
    
SetEntProp(iClientProp_Data"m_ArmorValue"2001);
    
    
SetEntityModel(iClientg_sModel);
    
    
SetEntPropFloat(iClientProp_Data"m_flMaxspeed"0.0);
    
    
float fTime GetGameTime();
    
    if (
g_fTime[iClient] + 30.0 fTime)
    {
        
g_fTime[iClient] = fTime;
        
        
SetEntPropFloat(iClientProp_Data"m_flMaxspeed"1.0);
    }



Thanos freezed infinity, and mesage not appear in chat

mug1wara 07-16-2018 19:17

Re: [CSGO] Thanos mode
 
edited code above, satisfied now?

drespy 07-16-2018 19:20

Re: [CSGO] Thanos mode
 
Quote:

Originally Posted by mug1wara (Post 2604098)
edited code above, satisfied now?

Perfect, thanks.

mug1wara 07-16-2018 19:24

Re: [CSGO] Thanos mode
 
I'm happy to help! ^^

drespy 07-16-2018 19:37

Re: [CSGO] Thanos mode
 
Quote:

Originally Posted by mug1wara (Post 2604104)
I'm happy to help! ^^

Now after 30 sec. he freeze, haha

micapat 07-16-2018 19:43

Re: [CSGO] Thanos mode
 
Use FL_FROZEN to freeze a player instead of m_flMaxSpeed


All times are GMT -4. The time now is 14:41.

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