Raised This Month: $ Target: $400
 0% 

Showing results 1 to 25 of 33
Search took 0.03 seconds.
Search: Posts Made By: Drimacus
Forum: Scripting 03-24-2024, 09:14
Replies: 0
Views: 406
Posted By Drimacus
Grenade explosion at the point where the bullet hit

Could you please tell me how to make a grenade explode at the point where the bullet hits?
Forum: Scripting 03-18-2024, 01:54
Replies: 0
Views: 314
Posted By Drimacus
Discard a player on a hit in CS:S

This is how I discard players when hit in the body or close to it, such as under the feet.
#include <sdktools>

new Handle:cvarRadius;
new Handle:cvarMagnitude;

int g_sprite = 0;

...
Forum: Scripting 02-23-2024, 15:40
Replies: 0
Views: 344
Posted By Drimacus
Replacement of radio commands at the beginning and end of the round

Is there a better way to intercept ctwin and terwin radio commands?
#include <sdktools>
#include <cstrike>

#define MAX_STR_LEN 128

...

public OnPluginStart()
{
Forum: Scripting 02-22-2024, 14:05
Replies: 1
Views: 394
Posted By Drimacus
Pass an array to a function

Hello!
How do you pass an array with other variables?
The code below does not work. This is my vision.
public Action Test(client, args)
{
MyFunc(MyArray, "sound/hit/", "kevlar"); // How do you...
Forum: Scripting 02-19-2024, 12:37
Replies: 1
Views: 363
Posted By Drimacus
Write the full path to the file into an array

Hello!
Please tell me how to write the full path of a file into an array. Example: sound/hit/hit1.wav
I managed to write only the file name.
#include <sourcemod>

#define MAX_PATH_LENGTH 128
...
Forum: Scripting 02-19-2024, 02:15
Replies: 7
Views: 657
Posted By Drimacus
Re: Play my sound of death

Solved.
public OnPluginStart()
{
AddNormalSoundHook(DeathSound);
}

public Action:DeathSound(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume,...
Forum: Scripting 02-18-2024, 09:02
Replies: 7
Views: 657
Posted By Drimacus
Re: Play my sound of death

Game Counter-Strike: Source.
Forum: Scripting 02-18-2024, 05:49
Replies: 7
Views: 657
Posted By Drimacus
Re: Play my sound of death

That's how it works.
public Action:DeathSound(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags)
{
if (StrContains(sample,...
Forum: Scripting 02-18-2024, 02:20
Replies: 7
Views: 657
Posted By Drimacus
Re: Play my sound of death

There is a sound pre-sharpening.
public OnMapStart()
{
decl String:file[MAX_PATH_LENGTH];
// Precache
for (new i = 1; i <= 5; i++)
{
Format(file, sizeof(file), "death%d.mp3", i);...
Forum: Scripting 02-17-2024, 16:33
Replies: 7
Views: 657
Posted By Drimacus
Play my sound of death

Hello!
Please help me play my sounds of death. I can block the standard death sounds (they are not heard and the message public Action:DeathSound appears in the chat).

Public Event_PlayerDeath...
Forum: Scripting 02-16-2024, 16:04
Replies: 1
Views: 527
Posted By Drimacus
Bind buttons on the player

Hello!
I want to use the plugin to bind the button at the player.

Found an example, but it doesn't work.
public OnPluginStart()
{
AddCommandListener(Button_F4, "rebuy");
}

public...
Forum: Scripting 02-16-2024, 07:34
Replies: 3
Views: 422
Posted By Drimacus
Load from ini-file

Hello!
Please tell me how to load strings from ini-file into a dynamic array and go through the array by FOR loop.

Contents of the ini file:
models/player/zh/zh_charple001.mdl...
Forum: Scripting 12-12-2014, 16:33
Replies: 1
Views: 342
Posted By Drimacus
Merge strings

Hello. I have
GetTimeLeft(i, s_TimeLeft, sizeof(s_TimeLeft));

strcopy(buf, sizeof(buf), s_Buffer);
ReplaceString(buf, sizeof(buf), "{TIMELEFT}", s_TimeLeft, false);...
Forum: Scripting 06-15-2014, 11:00
Replies: 1
Views: 356
Posted By Drimacus
Download file from my URL

Hello!
Please help. How download file from my URL. Possible examples?
Forum: Scripting 04-08-2014, 11:06
Replies: 7
Views: 2,162
Posted By Drimacus
Re: Block standard death sound in CS:S

public Action:DeathSound(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags)
{
PrintToChatAll("sample = %s", sample);
return...
Forum: Scripting 04-07-2014, 13:19
Replies: 7
Views: 2,162
Posted By Drimacus
Re: Block standard death sound in CS:S

What event catches the sound of a fall from a great height?
AddNormalSoundHook(HurtSound) or another?
Thanks!
Forum: Scripting 04-07-2014, 12:12
Replies: 7
Views: 2,162
Posted By Drimacus
Block standard death sound in CS:S

How in Counter-Strike: Source block standard death sound and it is possible?
Thanks!
Forum: Scripting 02-23-2014, 07:06
Replies: 2
Views: 552
Posted By Drimacus
Forum: Scripting 02-23-2014, 04:52
Replies: 2
Views: 552
Posted By Drimacus
[CSS]Zoom for me and spectator

On SourceMod it is possible to make so that I saw so (На SourceMod можно сделать так, чтобы я видел так)
http://rvs.ucoz.ru/misc/sm/01.jpg
and observing me so? (а наблюдающий за мной так)...
Forum: Plugins 02-17-2014, 06:58
Replies: 32
Views: 21,656
Posted By Drimacus
Re: [ANY] Binoculars v3

Hi. It is possible to realize function that spectators didn't see that the live player uses the Binoculars (not the notification, and visualization).
Forum: Scripting 10-31-2011, 04:43
Replies: 4
Views: 2,206
Posted By Drimacus
Forum: Scripting 10-30-2011, 08:23
Replies: 4
Views: 2,206
Posted By Drimacus
Forum: Scripting 10-30-2011, 07:49
Replies: 4
Views: 2,206
Posted By Drimacus
CreateConVar - warning 213: tag mismatch

new bool:cvarWeaponGlock;

public OnPluginStart()
{
cvarWeaponGlock = CreateConVar("sm_buy_deny_glock", "0", "Deny Glock. [0 = FALSE, 1 = TRUE]", FCVAR_PLUGIN, true, 0.0, true, 1.0); // warning...
Forum: Scripting 10-29-2011, 07:40
Replies: 0
Views: 537
Posted By Drimacus
How recreate menu?

#define MAX_BUFFER_SIZE 200

new Handle:cvarCostApple;
new Handle:g_mainmenu;

new g_iAccount = -1;

public OnPluginStart()
{
g_iAccount = FindSendPropOffs("CCSPlayer", "m_iAccount");
Forum: Scripting 06-28-2011, 08:54
Replies: 9
Views: 2,053
Posted By Drimacus
Showing results 1 to 25 of 33

 
Forum Jump

All times are GMT -4. The time now is 15:33.


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