|
Member
|
07-16-2018
, 19:06
Re: [CSGO] Thanos mode
|
#5
|
Quote:
Originally Posted by mug1wara
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_Thanos, ADMFLAG_GENERIC);
}
public void OnMapStart()
{
AddFileToDownloadsTable(g_sModel);
}
public Action Cmd_Thanos(int iClient, int iArgs)
{
Thanos.Precache();
SetEntityModel(iClient, g_sModel);
SetEntityHealth(iClient, 200);
SetEntProp(iClient, Prop_Data, "m_ArmorValue", 200, 1);
SetEntityModel(iClient, g_sModel);
SetEntPropFloat(iClient, Prop_Data, "m_flMaxspeed", 0.0);
float fTime = GetGameTime();
if (g_fTime[iClient] + 30.0 < fTime)
{
g_fTime[iClient] = fTime;
SetEntPropFloat(iClient, Prop_Data, "m_flMaxspeed", 1.0);
}
}
|
Thanos freezed infinity, and mesage not appear in chat
|
|
|
|