Raised This Month: $149 Target: $400
 37% 

Showing results 1 to 25 of 500
Search took 0.01 seconds.
Search: Posts Made By: Ilusion9
Forum: Scripting Yesterday, 08:05
Replies: 2
Views: 235
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 Yesterday, 06:09
Replies: 9
Views: 1,792
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: 280
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: 2
Views: 235
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: 24
Views: 3,788
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,016
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: 320
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: 346
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: 346
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: 435
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,147
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: 575
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: 444
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: 444
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,730
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: 330
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: 481
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...
Forum: General 12-20-2020, 13:15
Replies: 7
Views: 603
Posted By Ilusion9
Re: [CSGO] How can I disable round draws when enabling respawns?

make roundtime as timelimit
if timelimit is 20, set roundtime as 20 and maxrounds to 0.
Forum: General 12-20-2020, 13:13
Replies: 7
Views: 481
Posted By Ilusion9
Re: [CS:GO] Trying to make a script to change player's name, when they join

What is wrong with your code:
public OnClientPutInServer(client) {

char name[MAX_NAME_LENGTH], group[MAX_NAME_LENGTH];
// FindTarget is used in commands (example: sm_ban) to find a target...
Forum: Plugin/Gameplay Ideas and Requests 12-14-2020, 07:08
Replies: 3
Views: 371
Posted By Ilusion9
Re: After 3 spawns i get hp

#include <sourcemod>
#include <sdkhooks>
#include <sdktools>
#include <cstrike>
#pragma newdecls required

int g_Spawns[MAXPLAYERS + 1];

public void OnPluginStart()
{
Forum: Plugins 12-09-2020, 11:27
Replies: 24
Views: 3,788
Posted By Ilusion9
Re: [CS:GO] Fix Competitive Warmup

I think that can be done with a convar, enabling/disabling it while in warmup can be bad.
Forum: Plugins 12-08-2020, 07:19
Replies: 66
Views: 33,872
Posted By Ilusion9
Re: [ANY] NoBlock Plugin with TeamFilter - AVOIDS MAYHEM BUG

Install sdkhooks, it comes with sourcemod by default.
Forum: Plugins 12-07-2020, 18:41
Replies: 24
Views: 3,788
Posted By Ilusion9
Re: [CS:GO] Fix Competitive Warmup

Try this:


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

public Plugin myinfo =
{
name = "Fix Competitive Warmup",
Forum: Plugins 12-07-2020, 08:20
Replies: 24
Views: 3,788
Posted By Ilusion9
Re: [CS:GO] Fix Competitive Warmup

I have updated the plugin. Try now.
Forum: Scripting 12-07-2020, 05:05
Replies: 6
Views: 584
Posted By Ilusion9
Re: [CSGO] Detect death caused by team change

You can prevent automatic team change and listen only for jointeam



public void Event_PlayerConnect(Event event, const char[] name, bool dontBroadcast)
{
int client =...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 01:47.


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