Raised This Month: $183 Target: $400
 45% 

Showing results 1 to 25 of 500
Search took 0.01 seconds.
Search: Posts Made By: Ilusion9
Forum: Scripting Today, 11:58
Replies: 3
Views: 63
Posted By Ilusion9
Re: Stripping everything but knife [CS:GO]

void StripWeaponsAndGiveKnife(int client)
{
int entity = CreateEntityByName("game_player_equip");
if (entity == -1)
{
LogError("Unable to create \"game_player_equip\" entity.");
return;...
Forum: Scripting Today, 07:02
Replies: 3
Views: 199
Posted By Ilusion9
Forum: Snippets and Tutorials 01-21-2021, 06:48
Replies: 4
Views: 170
Posted By Ilusion9
Re: [STOCK] Custom kill message icons

HookEvent("player_death", Event_PlayerDeath_Pre, EventHookMode_Pre);

public void Event_PlayerDeath_Pre(Event event, const char[] name, bool dontBroadcast)
{
if (event.GetInt("attacker"))
{...
Forum: General 01-21-2021, 04:58
Replies: 3
Views: 122
Posted By Ilusion9
Re: Admin Menu Ingame scaling

Hud scaling its done client side, not server side. Search for hud_* commands.

Try these:
hud_scaling 0.85
cl_reload_hud
hud_reloadscheme
Forum: Scripting 01-20-2021, 18:09
Replies: 3
Views: 199
Posted By Ilusion9
Vecmins and vecmaxs based on angular rotation

GetEntPropVector(entity, Prop_Data, "m_vecAbsOrigin", Origin);
GetEntPropVector(entity, Prop_Data, "m_vecMins", Mins);
GetEntPropVector(entity, Prop_Data, "m_vecMaxs", Maxs);...
Forum: Plugins 01-19-2021, 12:04
Replies: 20
Views: 900
Posted By Ilusion9
Re: [ANY] Keep Player Name [Updated 17-01-2021] Version 1.0.0

return Plugin_Handled in player_changename event doesn't block the name change. You must check the client name in OnClientSettingsChanged() and you should block the message in SayText2 usermessage.
...
Forum: Scripting 01-19-2021, 11:50
Replies: 7
Views: 445
Posted By Ilusion9
Re: [CS:GO] Weapon goes through solid wall

I've changed the model to "models/props/cs_office/vending_machine.mdl" and same result. I created trigger_bomb_reset entities and c4 is teleported back to the player (exactly how de_vertigo does).
Forum: Plugins 01-18-2021, 06:51
Replies: 6
Views: 482
Posted By Ilusion9
Re: [CSGO] No grenades block (1.0)

new ArrayList(32); should be new ArrayList();

anyway, you can avoid creating 2 arraylists by creating 1 stringmap.

you can look at this:...
Forum: Scripting 01-16-2021, 08:05
Replies: 7
Views: 445
Posted By Ilusion9
Re: [CS:GO] Weapon goes through solid wall

Already tried these settings, maybe it's something wrong with the model, or because it's not in the OnLevelInit keyvalues...
I think I will create trigger_bomb_reset entities, with the same size and...
Forum: Plugins 01-16-2021, 06:09
Replies: 9
Views: 1,867
Posted By Ilusion9
Re: [CS:GO] Extend Map

It clearly says: cannot read from file: "sourcecolors".
You must get the include from my github and compile with it.
Forum: General 01-14-2021, 11:00
Replies: 7
Views: 416
Posted By Ilusion9
Re: Scoreboard of FFA DM Server

look at top hud (where's timeleft, rounds etc). thats casual/competitive hud, not deathmatch.
Forum: Scripting 01-09-2021, 15:04
Replies: 7
Views: 445
Posted By Ilusion9
[CS:GO] Weapon goes through solid wall

int entity = CreateEntityByName("func_wall_toggle");
if (entity != -1)
{
DispatchKeyValueVector(entity, "origin", zoneInfo.vecOrigin);

DispatchSpawn(entity);...
Forum: Plugins 01-08-2021, 14:40
Replies: 26
Views: 4,124
Posted By Ilusion9
Re: [CS:GO] Fix Competitive Warmup

He's using the version where those files are deleted. You should not add them back. It's just an error that doesn't affect the gameplay.
Forum: Scripting 01-06-2021, 12:23
Replies: 12
Views: 2,048
Posted By Ilusion9
Re: Knife detection

bool IsWeaponKnife(int weapon)
{
char netClass[256];
GetEntityNetClass(weapon, netClass, sizeof(netClass));
return StrNumEqual(netClass, "CKnife", 6, true);
}



From this plugin:...
Forum: Plugin/Gameplay Ideas and Requests 01-06-2021, 08:49
Replies: 2
Views: 336
Posted By Ilusion9
Re: remove damage knife e zeus.

#pragma semicolon 1

#include <sourcemod>
#include <sdkhooks>
#include <sdktools>

public void OnClientPostAdminCheck(int client)
{
SDKHook(client, SDKHook_OnTakeDamage, OnTakeDamage);
}
Forum: Scripting 01-05-2021, 15:46
Replies: 4
Views: 430
Posted By Ilusion9
Re: Block VGUI teammenu with protobuf?

You should search for "team" or "teammenu", but VGUIMenu doesn't trigger teammenu anymore with panorama. You cannot hook it and cannot block it.
Forum: Scripting 01-05-2021, 08:52
Replies: 4
Views: 430
Posted By Ilusion9
Re: Block VGUI teammenu with protobuf?

Start with this:



public void OnPluginStart()
{
UserMsg umVGUIMenu = GetUserMessageId("VGUIMenu");
if (umVGUIMenu == INVALID_MESSAGE_ID)
SetFailState("UserMsg `umVGUIMenu`...
Forum: Plugin/Gameplay Ideas and Requests 01-03-2021, 06:43
Replies: 2
Views: 446
Posted By Ilusion9
Re: [REQ][CS;GO] Add timelimit to the top

int SetRoundDuration(int time)
{
GameRules_SetProp("m_iRoundTime", time);
}
Forum: Snippets and Tutorials 01-02-2021, 09:36
Replies: 68
Views: 58,346
Posted By Ilusion9
Re: [Tutorial] Creating brush entities

How to create invisible walls in CS:GO (maybe you can set a model?):



int entity = CreateEntityByName("func_wall_toggle");

if (entity != -1)
{
DispatchKeyValueVector(entity,...
Forum: Plugin/Gameplay Ideas and Requests 01-01-2021, 07:57
Replies: 12
Views: 672
Posted By Ilusion9
Re: [CSGO] Looking for NoBlock plugin

That plugin that you mentioned in first post (https://forums.alliedmods.net/showthread.php?t=91617?t=91617) has a convar that disables collisions with grenades:

sm_noblock_nades - Removes player...
Forum: Scripting 12-28-2020, 07:10
Replies: 4
Views: 468
Posted By Ilusion9
Re: Merge two KeyValues trees

https://sm.alliedmods.net/new-api/KeyValues/KeyValues/ImportFromFile
Imports a file in KeyValues format. The file is read into the current position of the tree.

Try this:


KeyValues kv = new...
Forum: Scripting 12-27-2020, 10:11
Replies: 4
Views: 468
Posted By Ilusion9
Re: Merge two KeyValues trees

Try this:



KeyValues kv1 = new KeyValues("root node");
KeyValues kv2 = new KeyValues("root node");
kv1.ImportFromFile("file1.txt");
kv2.ImportFromFile("file2.txt");

char key[256];
Forum: Scripting 12-26-2020, 07:46
Replies: 13
Views: 1,767
Posted By Ilusion9
Re: Manually closing a client's menu

1. You can use this to close a menu, but it will show a tiny square for 1 second:

InternalShowMenu(client, "\r", 1, _, Menu_DoNothing);
public int Menu_DoNothing(Menu menu, MenuAction action, int...
Forum: Scripting 12-25-2020, 07:18
Replies: 3
Views: 348
Posted By Ilusion9
Re: TR_EnumerateEntities is using trigger abs/bbox

The only way to do that is to check if the client is touching a trigger_hurt. Can you show the TR_ function, from where you start the hull/ray and where it ends?
Forum: General 12-21-2020, 07:22
Replies: 7
Views: 504
Posted By Ilusion9
Re: [CS:GO] Trying to make a script to change player's name, when they join

Because you have to edit my code, you have set a name if client is not admin and if client has no groups. The code works only if client has a group and his name is different than his group. Also, you...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 16:12.


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