View Single Post
drespy
Member
Join Date: Jul 2018
Old 07-16-2018 , 19:06   Re: [CSGO] Thanos mode
Reply With Quote #5

Quote:
Originally Posted by mug1wara View Post
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
drespy is offline