Raised This Month: $51 Target: $400
 12% 

Showing results 1 to 25 of 33
Search took 0.00 seconds.
Search: Posts Made By: ici
Forum: Scripting 01-30-2018, 17:12
Replies: 9
Views: 5,384
Posted By ici
Re: [DHooks] IGameMovement Help (unexposed interfaces)

Thanks a lot for the help boys

It worked after I changed the library from engine to server.



Yeah, a global ptr var is what I meant there, my bad. Confused the prefix, thought it was m_
...
Forum: Scripting 01-28-2018, 19:36
Replies: 9
Views: 5,384
Posted By ici
[DHooks] IGameMovement Help (unexposed interfaces)

Hi guys,

I've been playing around with DHooks (https://forums.alliedmods.net/showthread.php?t=180114) lately.

I'm trying to reach IGameMovement / CGameMovement / CCSGameMovement and hook a...
Forum: Plugins 01-10-2017, 10:37
Replies: 14
Views: 24,038
Posted By ici
Re: [ANY] Showtriggers

Hey,

I do not think I will be able to do that as SM lacks support for leaf visualization (perhaps it's not possible, or is via some sort of a SM/MM extesion) and I can't think of a way to trace...
Forum: Plugins 11-12-2016, 12:17
Replies: 14
Views: 24,038
Posted By ici
Re: [ANY] Showtriggers

Hey, I tested it and it works for me. I'm using the latest stable MM and SM builds. Here's a screenshot: https://hostr.co/file/bP1WgM1J6ysT/20161112170150_1.jpg

If you could give me some more...
Forum: Plugins 11-11-2016, 19:17
Replies: 14
Views: 24,038
Posted By ici
[ANY] Showtriggers

This plugin replicates the showtriggers_toggle console command without the need of sv_cheats. If you're not familiar with what it does, it basically loops through all trigger entities on the map and...
Forum: Scripting 03-29-2016, 12:17
Replies: 2
Views: 713
Posted By ici
How to make a private forward that accepts multiple functags?

What I'm trying to do is register a private forward that accepts different functags.

For instance look at SDKHooks:

funcenum SDKHookCB
{
...
// OnTakeDamagePost
public(victim, attacker,...
Forum: Scripting 03-15-2016, 09:42
Replies: 1
Views: 686
Posted By ici
Enums & passing an element as a parameter

Hey there fellas,

I have a nested enum data structure and I am trying to alter values by passing an element of the enum as a parameter.

Look at the "set" function and the commented line below...
Forum: Scripting 10-26-2015, 18:27
Replies: 2
Views: 831
Posted By ici
Forum: Scripting 10-26-2015, 15:39
Replies: 2
Views: 831
Posted By ici
[CS:S] player_connect & dontBroadcast

The following code used to work before the recent CS:S update.
It suppressed the message "Player <name> has joined the game" but it doesn't work anymore.
Any ideas on how to fix this?
...
Forum: Scripting 09-19-2015, 09:50
Replies: 1
Views: 356
Posted By ici
Re: output array

You have to pass "int iWeaponCount" by reference like so:

stock void GetWeaponIndexAll(int client, int[] arrWeapons, int & iWeaponCount)
Forum: Scripting 03-28-2015, 15:56
Replies: 5
Views: 1,204
Posted By ici
Re: How to deal with this global timer...

new Handle:gH_SandvichTimers[TF_MAX_PLAYERS] = {INVALID_HANDLE, ...};
new g_Timers[TF_MAX_PLAYERS];

public OnMapStart()
{
ClearAllTimers();
}

public OnClientDisconnect(client)
{
Forum: Plugin/Gameplay Ideas and Requests 03-23-2015, 21:14
Replies: 54
Views: 13,616
Posted By ici
Re: No more lenny face

( ͡° ͜ʖ ͡°)
Forum: Scripting 03-22-2015, 11:13
Replies: 2
Views: 1,175
Posted By ici
Re: SetMenuExitBackButton

FirstMenu(client)
{
new Handle:menu = CreateMenu(FirstMenu_Handler);
SetMenuTitle(menu, "My First Menu");
AddMenuItem(menu, "1", "Go to the second menu");
...
Forum: Scripting 03-21-2015, 17:32
Replies: 5
Views: 1,112
Posted By ici
Re: CSS check if death is by back stab?

Hook SDKHook_OnTakeDamage and check if the weapon that dealt the damage is weapon_knife. If the damage is greater than 65, then it must be a backstab.
Forum: Scripting 03-18-2015, 18:46
Replies: 6
Views: 1,064
Posted By ici
Re: Client Index Ref

So referencing is just serializing a variable? I thought that the '&' symbol meant do not recreate / initialize a new instance of the variable that is pushed to the function.

In the following...
Forum: Scripting 03-18-2015, 17:11
Replies: 6
Views: 1,064
Posted By ici
Re: Client Index Ref

Not this kind of entity reference indexes. Sorry, I meant pointers. I'm little bit confused right now.

Action:public(victim, &attacker, &inflictor, &Float:damage, &damagetype)

Aren't &attacker,...
Forum: Scripting 03-18-2015, 15:11
Replies: 6
Views: 1,064
Posted By ici
Client Index Ref

Why are client indexes not referenced in most of SourceMod's forwards? Is it bad if I reference client indexes in my functions? If somebody could give me an explanation, I'd be thankful! :fox:
Forum: Extensions 02-23-2015, 17:14
Replies: 50
Views: 53,474
Posted By ici
Re: [CS:S] Flashbang Tools

Here's the detonate signature for csgo. I couldn't find the other two, sorry.

"CFlashbangProjectile::Detonate"
{
"library" "server"...
Forum: Scripting 02-20-2015, 03:58
Replies: 3
Views: 1,734
Posted By ici
Re: [CS:GO] Trace attack not called on knife

You should use OnTakeDamage instead.
Forum: Scripting 02-17-2015, 16:57
Replies: 15
Views: 3,188
Posted By ici
Re: [CS:GO] Preventing suicide by "kill" or world damage from setting kills negative

#pragma semicolon 1

#include <sourcemod>

public OnPluginStart()
{
HookEvent("player_death", Event_PlayerDeath);
}

public Event_PlayerDeath(Handle:event, const String:name[],...
Forum: Scripting 02-17-2015, 16:36
Replies: 2
Views: 658
Posted By ici
Re: HEL Plugin Timer and only for Tīs and alive

I don't know what exactly you're trying to achieve.
The following script will allow alive terrorists to run the command once per round.

#pragma semicolon 1

#include <sourcemod>

new...
Forum: Scripting 02-12-2015, 14:06
Replies: 1
Views: 575
Posted By ici
A question about handles and adt_arrays

Suppose I had a trie stored in a global adt_array at position 3.
How would I replace the trie at position 3 with a newly created one without causing memory leaks?

SetArrayCell(My_Array, 3,...
Forum: Scripting 02-05-2015, 16:19
Replies: 8
Views: 2,173
Posted By ici
Re: How to reset or close a timer before it fired

Thanks for the info bro.

Btw, I've seen people pass the client's unique serial identifier (GetClientSerial).

What is this actually? Is it better to pass that than the userid?

Edit:
Found...
Forum: Scripting 02-05-2015, 13:20
Replies: 6
Views: 1,449
Posted By ici
Re: Strings in Enums (Array out of bounds)

Talking of Enums and Strings, instead of me making a new thread, can somebody tell me how to use multi-dimensional arrays (strings) in Enums please?

enum MyEnum
{
String:Buffer[32][256],
......
Forum: Scripting 02-05-2015, 12:50
Replies: 4
Views: 990
Posted By ici
Re: code not giving expected results

#pragma semicolon 1

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

new Handle:ff = INVALID_HANDLE;
new bool:bLateLoad = false;

public APLRes:AskPluginLoad2(Handle:myself,...
Showing results 1 to 25 of 33

 
Forum Jump

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


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