Raised This Month: $32 Target: $400
 8% 

Showing results 1 to 25 of 53
Search took 0.00 seconds.
Search: Posts Made By: Hennesy
Forum: Scripting 09-16-2021, 11:34
Replies: 3
Views: 874
Posted By Hennesy
Re: GetVectorDistance ~ TE_SetupBeamRingPoint

Apparently you did not understand what I mean, I asked specifically for GetVectorDistance the specified value that you have what I have will not lead to the best result. because the code in this case...
Forum: Scripting 09-16-2021, 03:58
Replies: 3
Views: 874
Posted By Hennesy
GetVectorDistance ~ TE_SetupBeamRingPoint

float fDist = 700.0; // in the code it is a dynamic variable.

TE_SetupBeamRingPoint(fPos, fDist, fDist+0.1, g_BeamSprite, 0, 0, 1, 1.0, 2.3, 0.0, {255, 0, 0, 255}, 1, 0);
TE_SendToAll();
...
Forum: Scripting 09-11-2021, 10:31
Replies: 12
Views: 1,659
Posted By Hennesy
Re: sorting players

Thanks for the solution azalty.

It turned out to be much easier than I thought.

I needed to use direct obtaining of g_hQueue.Length size in loops.
Forum: Scripting 09-11-2021, 08:04
Replies: 12
Views: 1,659
Posted By Hennesy
Re: sorting players

Yes, can you give your discord?
Forum: Scripting 09-11-2021, 07:44
Replies: 12
Views: 1,659
Posted By Hennesy
Re: sorting players

Maybe you can help me rewrite SortArray, it seems to me that the error is just in the loop itself.
Forum: Scripting 09-11-2021, 07:43
Replies: 12
Views: 1,659
Posted By Hennesy
Re: sorting players

added Queue:
int i = g_hQueue.Push(GetClientUserId(iClient));


g_hQueue.Get returns 0 index in this case, but should return userid -> then converts userid to index - and we are already working...
Forum: Scripting 09-11-2021, 07:29
Replies: 12
Views: 1,659
Posted By Hennesy
Re: sorting players

In the same place the logical expression || "OR"

iClient may be positive, but GetClientTeam may not.

Exception reported: Client index 0 is invalid

iClient =...
Forum: Scripting 09-11-2021, 05:36
Replies: 12
Views: 1,659
Posted By Hennesy
Re: sorting players

L 09/10/2021 - 22:05:14: [SM] Exception reported: Client index 0 is invalid
L 09/10/2021 - 22:05:14: [SM] Blaming: plugin.smx
L 09/10/2021 - 22:05:14: [SM] Call stack trace:
L 09/10/2021 -...
Forum: Scripting 09-10-2021, 14:53
Replies: 12
Views: 1,659
Posted By Hennesy
Re: sorting players

#define RATIO 30 // % from all players can be for CT


iClients[2] = total all players;
iClients[1] = total CT players
iClients[0] = total T players


How many CT will be from% of all T
int...
Forum: Scripting 09-07-2021, 04:02
Replies: 12
Views: 1,659
Posted By Hennesy
sorting players

Hello mates, help please, the plugin does not work, it seems everything is fine, but the players from the queue are not transferred for CT.

I have a queue for CT, and at the end of the round, the...
Forum: Scripting 08-16-2021, 16:40
Replies: 4
Views: 975
Posted By Hennesy
Re: Reading and displaying information from a file

need new syntax.


static char g_sFilePath[PLATFORM_MAX_PATH], fileLine[256];
BuildPath(Path_SM, g_sFilePath, sizeof(g_sFilePath), "configs/rules.txt");
Handle fileHandle = OpenFile(...
Forum: Scripting 08-16-2021, 15:45
Replies: 4
Views: 975
Posted By Hennesy
Reading and displaying information from a file

Hi everyone.

Who can help, need to read configs / rules.txt file

And display in the chat every line that is in the file
Forum: Scripting 08-13-2021, 02:37
Replies: 5
Views: 1,681
Posted By Hennesy
Re: Question to sourcepawn guru, how to understand who started shooting first

I wrote that I do not understand exactly how to compose the logic with the code. I already know that I need to use OnTakeDamage
Forum: Scripting 08-12-2021, 15:19
Replies: 5
Views: 1,681
Posted By Hennesy
Question to sourcepawn guru, how to understand who started shooting first

Hello mates.

Who can help me, how can I check that index1 started first shootfire to
index2? you need to find the initiator of the shooting.

I simply cannot build logic even, my level of...
Forum: Scripting 08-12-2021, 09:08
Replies: 2
Views: 877
Posted By Hennesy
Re: show text in display new method

who knows, help with the implementation or give advice on where to go.
Forum: Scripting 08-12-2021, 08:54
Replies: 2
Views: 877
Posted By Hennesy
show text in display new method

Hi, man!

Can anyone tell me how to trigger an event or how to write such text on the screen?

Its no event > show_survival_respawn_status

Thanks!
Forum: Scripting 08-06-2021, 08:05
Replies: 4
Views: 1,601
Posted By Hennesy
Re: Randomization player

It is necessary to issue the roles of the player, the roles have restrictions. Let's say role1 - 1 player, role2 - 2 player

and let's say for 30 players you need to distribute 2 roles to 3 players...
Forum: Scripting 08-05-2021, 10:59
Replies: 1
Views: 1,400
Posted By Hennesy
hide the death log in the upper left corner

Tell me how to remove the list of murders at the top, and you can also tell me how to make sure that murders and deaths are not updated in TAB
Forum: Scripting 08-04-2021, 11:21
Replies: 4
Views: 1,601
Posted By Hennesy
Re: Randomization player

I tried to do this, but I'm not sure if this is a normal solution. Someone does not give a role at all.


void InitRoles()
{
LoopClients(i) g_iRole[i] = Role_None;

for (int i = 1; i <=...
Forum: Scripting 08-04-2021, 04:32
Replies: 4
Views: 1,601
Posted By Hennesy
Randomization player

Hello everyone, I apologize for the English, please tell me how can I make a random distribution of roles?

I need to call the function, implement the issuance of roles for the players.

There is...
Forum: Off-Topic 02-02-2021, 10:13
Replies: 2
Views: 1,807
Posted By Hennesy
does alliedmods have a discord server?

does alliedmods have a discord server?
Forum: Scripting 06-12-2020, 07:26
Replies: 6
Views: 3,515
Posted By Hennesy
Forum: Scripting 06-12-2020, 05:25
Replies: 6
Views: 3,515
Posted By Hennesy
Re: Fix this > Array-based enum structs will be removed in 1.11.

Warning remains as before
warning 241: Array-based enum structs will be removed in 1.11.
Forum: Scripting 06-12-2020, 04:38
Replies: 6
Views: 3,515
Posted By Hennesy
Fix this > Array-based enum structs will be removed in 1.11.

How to fix this warning? warning 241: Array-based enum structs will be removed in 1.11.


enum ListingRoles
{
Role_One = 0,
Role_Two,
Role_Three,
Role_Four,
Role_Five,
Forum: Scripting Help 06-29-2019, 15:10
Replies: 1
Views: 824
Posted By Hennesy
how to track switch weapon

how to track switch weapon?
But if the player switched to the bomb then write to the chat DETECTED) help pls)
Showing results 1 to 25 of 53

 
Forum Jump

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


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