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

Showing results 1 to 25 of 66
Search took 0.03 seconds.
Search: Posts Made By: ElectricStalin
Forum: Scripting 11-20-2017, 16:44
Replies: 0
Views: 548
Posted By ElectricStalin
[CS GO] Problem with EmitSound

Hello, guys.

I need to play a sound on some event. I write this 3 lines:


public void OnMapStart()
{
.....
.....
AddFileToDownloadsTable("sound/items/<soundname>.wav");
Forum: Scripting 10-12-2017, 14:40
Replies: 16
Views: 4,654
Posted By ElectricStalin
Re: PlayerRunCmdHook crash

Under the button "1" I mean the choice of the primary weapon. (1-primary, 2-secondary, 3- knife and so forth).

Do you think it's more reliable to handle button pressing than to catch the weapon...
Forum: Scripting 10-11-2017, 10:49
Replies: 16
Views: 4,654
Posted By ElectricStalin
Re: PlayerRunCmdHook crash

Yes) Player can carry many weapons. In clientsWeapon[][] i store indexes. And player can scroll weapons by pressing "1".
Forum: Scripting 10-11-2017, 05:20
Replies: 16
Views: 4,654
Posted By ElectricStalin
Re: PlayerRunCmdHook crash

Yes, perhaps. Do you mean, that problem is in my function? If so, can you tell me about the weak points?


I know, that it calls every tick. I was thinking of moving the function call, but I did...
Forum: Scripting 10-10-2017, 19:42
Replies: 16
Views: 4,654
Posted By ElectricStalin
Re: PlayerRunCmdHook crash

Yes. Only crash info in accelerator file, I wrote the link in first message.
Forum: Scripting 10-10-2017, 15:25
Replies: 16
Views: 4,654
Posted By ElectricStalin
Re: PlayerRunCmdHook crash

I can show any part of the plugin if necessary.

public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon)
{
if (buttons & IN_USE)
{
buttons...
Forum: Scripting 10-10-2017, 14:48
Replies: 16
Views: 4,654
Posted By ElectricStalin
PlayerRunCmdHook crash

Hi, guys.
Yesterday i had 2 crashes. Hier is one of them: https://crash.limetech.org/noomubm4ssxm
As I understand, problem was in hook OnPlayerRunCmd.
In plugin i have:

public...
Forum: Scripting 07-19-2017, 03:54
Replies: 7
Views: 1,708
Posted By ElectricStalin
Re: [CS GO] Zoom doesnt turn off after the shot

I know, i set indexes before dispatchspawn. So i have problems only with this 3 weapons awp and scout (scope problem) and famas (alternative fire problem).
Weapons spawn on the ground. Players can...
Forum: Scripting 07-19-2017, 03:28
Replies: 7
Views: 1,708
Posted By ElectricStalin
Re: [CS GO] Zoom doesnt turn off after the shot

Yes, i do. GivePlayerItem does not suit me, unfortunately. So, there is no fix for this bug?
Forum: Scripting 07-18-2017, 17:52
Replies: 7
Views: 1,708
Posted By ElectricStalin
Re: [CS GO] Zoom doesnt turn off after the shot

Update. I try to use "give weapon_awp". This awp works correctly. As I understand, it is entities bug and it has no fix. So it give another question. How can I turn off zoom for 1 sec after shot?
Forum: Scripting 07-12-2017, 03:35
Replies: 7
Views: 1,708
Posted By ElectricStalin
[CS GO] Zoom doesnt turn off after the shot

Hi
Found a bug, and I just can not understand where it came from. In general, if you shoot from the awp or the scout at the time of jitter, the zoom is not turned off. Also, an alternative fire does...
Forum: Scripting 07-01-2017, 12:03
Replies: 2
Views: 1,483
Posted By ElectricStalin
Forum: Scripting 07-01-2017, 04:45
Replies: 2
Views: 1,483
Posted By ElectricStalin
[CS GO] Print array with ShowHudText

Hello.
I have an array, that stores players weapon during the game. Something like this clientsWeapon[client][35]. I want to display array contents and refresh it, when it changes. Also i need to...
Forum: Scripting 06-30-2017, 16:32
Replies: 7
Views: 2,231
Posted By ElectricStalin
Re: [CS GO] Bug with glowing

Btw, i have solved the problem. I delete this: RemoveSkin(entity); and add deleting of the glow object to event ItemPickup
Forum: Scripting 06-28-2017, 12:06
Replies: 7
Views: 2,231
Posted By ElectricStalin
Re: [CS GO] Bug with glowing

I tried this. Weapons didnt appear on the map, but in logs i see, that they were created and spawned
Forum: Scripting 06-28-2017, 10:33
Replies: 7
Views: 2,231
Posted By ElectricStalin
Re: [CS GO] Bug with glowing

I read they from file. It is no so interesting.

while (!IsEndOfFile(file) && ReadFileLine(file, buffer, sizeof(buffer)))
{
ExplodeString(buffer, " ", parts, 6, 16);...
Forum: Scripting 06-28-2017, 01:48
Replies: 7
Views: 2,231
Posted By ElectricStalin
[CS GO] Bug with glowing

Hello! I try to make weapons entities on the ground glowing. This code works, but for some reason, there is a shift in coordinates and the weapon will spawn high in the sky. (See screenshot).

...
Forum: Scripting 06-24-2017, 06:42
Replies: 4
Views: 788
Posted By ElectricStalin
Re: [CS GO] A few problems with spawned weapons

So, here is some code, about first problem:

....
if(clientsWeapon[client][weaponInHand[client]]!=0)
{
new ammotype = GetEntProp(EntRefToEntIndex(clientsWeapon[client][weaponInHand[client]]),...
Forum: Scripting 06-24-2017, 06:33
Replies: 10
Views: 6,969
Posted By ElectricStalin
Re: Communicating with socket.io using sourcemod and socket

Maybe you'd better suited HTTP requests? I make plugin with it, that send data to server, and then recieve response.
Forum: Scripting 06-23-2017, 06:19
Replies: 4
Views: 788
Posted By ElectricStalin
Re: A few problems with spawned weapons

Why Call of Duty? :) I speak about CS GO.
Forum: Scripting 06-23-2017, 05:10
Replies: 4
Views: 788
Posted By ElectricStalin
[CS GO] A few problems with spawned weapons

Hello. I'm doing a DM plugin. The weapon will spawn on the map. I also wrote a module that allows you to select an unlimited number of weapons and switch it. Everything works correctly, but there are...
Forum: Scripting 06-15-2017, 08:27
Replies: 5
Views: 753
Posted By ElectricStalin
Re: Do not reset the array when restarting

Sorry, my bad) English is not my native language.
Btw, i solved this problem.
Forum: Scripting 06-15-2017, 04:41
Replies: 5
Views: 753
Posted By ElectricStalin
Re: Do not reset the array when restarting

I need to clear array after command mp_restartgame.
Forum: Scripting 06-15-2017, 04:18
Replies: 5
Views: 753
Posted By ElectricStalin
Do not reset the array when restarting

Good day.

Faced a bug that can not be fixed. In my plugin, the gaming session consists of 2 rounds. The first-warm-up, continues until the moment when all players join. The second, the main - an...
Forum: Scripting 06-14-2017, 01:54
Replies: 0
Views: 532
Posted By ElectricStalin
Event_PlayerSpawn happens 2 times.

Hello, guys. I make plugin, that allows players a plenty of weapons to pick up. Like a backpack. And after players death, i need to save 50% of weapon, and other 50% drop on the ground. Here is a...
Showing results 1 to 25 of 66

 
Forum Jump

All times are GMT -4. The time now is 06:30.


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