Raised This Month: $344 Target: $400
 86%   Almost there!

Showing results 1 to 25 of 500
Search took 0.04 seconds.
Search: Posts Made By: HamletEagle
Forum: Scripting Help Yesterday, 13:30
Replies: 3
Views: 100
Posted By HamletEagle
Re: Setting Strings

You are worring about things of no consequence. Use the second method because it is easier to maintain.
Forum: Off-Topic 08-27-2022, 05:48
Replies: 2
Views: 596
Posted By HamletEagle
Re: Plugins Sell

That's a broad question.

The license allows you to sell plugins as long as you always provide the source. You can't charge more for the sma file or distribute just the amxx file. In summary, it is...
Forum: Code Snippets/Tutorials 08-26-2022, 11:47
Replies: 233
Views: 136,062
Posted By HamletEagle
Re: How To: Make a perfect NPC

Read the tutorial. It says:
"Making a bot, or an NPC that can move easily and takes up a slot, is as simple as 1 2 3.

1. Follow the guide above
2. replace "create_entity("info_target"" with...
Forum: New Plugin Submissions 08-23-2022, 05:28
Replies: 12
Views: 1,300
Posted By HamletEagle
Re: Bomb Real Timer

Quick suggestions:
1. The entire code (including comments) must be in English.
2. Configuration options must not be hardcoded inside the plugin. Use cvars instead of defines.
3. Do not use fm_*...
Forum: Unapproved/Old Plugins 08-20-2022, 12:34
Replies: 6
Views: 1,196
Posted By HamletEagle
Re: Mod Zombie UniQue [Biohazard] Cs 1.6

Do not empty your topic, it is childish and against the rules. If you want your plugin back in the new plugins section, please attack the files to this post instead of using a link.
The sma file...
Forum: Scripting Help 08-20-2022, 09:01
Replies: 4
Views: 297
Posted By HamletEagle
Re: register message vs event

Events are hooked as post, you can not block or alter the event.
Messages are hooked as pre, it allows you to block/alter the message.

That's all there is to it. Pick the one that does what you...
Forum: New Plugin Submissions 08-19-2022, 13:19
Replies: 12
Views: 1,300
Posted By HamletEagle
Re: Bomb Real Timer

Attach the sma file here. It should be easily accessible.
Also, attach the archive with the resources here. If it is too big for the forum, you can keep your current download link for the resources,...
Forum: Unapproved/Old Plugins 08-19-2022, 13:17
Replies: 6
Views: 1,196
Posted By HamletEagle
Re: Mod Zombie UniQue [Biohazard] Cs 1.6

As the author did not comply, I will have to unapproved this "plugin".
Forum: Scripting Help 08-19-2022, 13:15
Replies: 6
Views: 358
Posted By HamletEagle
Re: Config Settings

If the plugin already does what you need, look in the source file to learn how to do it yourself.
As fysiks suggested, it may be best if you try using google translate or something similar.
Forum: Scripting Help 08-17-2022, 16:45
Replies: 5
Views: 204
Posted By HamletEagle
Re: Quick Question

Better for what?
Forum: New Plugin Submissions 08-06-2022, 05:32
Replies: 832
Views: 173,623
Posted By HamletEagle
Re: OciXCrom's Rank System [XP|Levels|Ranks]

This is a load of crap. People put their time and effort into making games. They have a right to charge for their work. If you can not afford it, then do not buy it.
No steam is illegal and this...
Forum: Suggestions / Requests 08-04-2022, 11:51
Replies: 10
Views: 653
Posted By HamletEagle
Re: Simple, random chance of rain with skymap change

It can be done without a mapchange, but the client has to reconnect before seeing the new sky.
Forum: Scripting Help 07-31-2022, 04:10
Replies: 4
Views: 505
Posted By HamletEagle
Re: NPC movement bug

It should, show some code.
Forum: Scripting Help 07-29-2022, 15:59
Replies: 4
Views: 505
Posted By HamletEagle
Re: NPC movement bug

You have to call StudioFrameAdvance or use an entity base that already does it. Or use MOVETYPE_PUSHSTEP instead of STEP.
Forum: Scripting Help 07-28-2022, 14:13
Replies: 4
Views: 376
Posted By HamletEagle
Re: what does that mean

No, without automatons your code will be 99999999x times slower and will not run at all without an i9 12900k overclocked on liquid nitrogen.

(Not every single feature in a programming language is...
Forum: Scripting Help 07-27-2022, 02:07
Replies: 9
Views: 518
Posted By HamletEagle
Re: Save Entity Index with BitSum

Please don't do this in practice. There is absolutely no reason for it.
Forum: Scripting Help 07-22-2022, 07:05
Replies: 13
Views: 596
Posted By HamletEagle
Re: Is this execution correct?

1. fysiks is correct. sizeof is an operator and its result is known at compile time. The compilr replaces it with the actual value in the generated binary.
There is no runtime overhead.

Things...
Forum: Unapproved/Old Plugins 07-21-2022, 14:21
Replies: 6
Views: 1,196
Posted By HamletEagle
Re: Mod Zombie UniQue [Biohazard] Cs 1.6

Please attach the files to this post. Do not upload the plugin to a 3rd party service.
Forum: Scripting Help 06-04-2022, 09:32
Replies: 11
Views: 483
Posted By HamletEagle
Re: Checking member file

This community does not support nonsteam.
Forum: Off-Topic 06-02-2022, 06:45
Replies: 38
Views: 4,125
Posted By HamletEagle
Re: AM logo

To play devil's advocate: this is an off-topic sub-forum for threads that do not fit in other sub-forums. However, you still have to be on-topic inside a thread here, just like everywhere else in...
Forum: Scripting Help 06-02-2022, 02:40
Replies: 2
Views: 233
Posted By HamletEagle
Re: What is the difference between those two functions?

I strongly suggest you start reading tutorials, for example this one: https://forums.alliedmods.net/showthread.php?t=94381

You'll learn a lot and be able to get your answers instantly, instead of...
Forum: Scripting Help 05-30-2022, 04:33
Replies: 24
Views: 596
Posted By HamletEagle
Re: Improving and optimizing this thing

Another way to get rid of the tag mismatch is to detag the enum, for example:

enum _:Knives
{
}

enum _:P90s
{
}
Forum: Scripting Help 05-27-2022, 09:28
Replies: 12
Views: 394
Posted By HamletEagle
Re: How to get unique id from array

You need to call this to do what you asked in your original post: get unique ids from an array.
Forum: Scripting Help 05-27-2022, 09:09
Replies: 12
Views: 394
Posted By HamletEagle
Re: How to get unique id from array

Okay, use this:

getUniqueElements(input, numElements, output, &numUnique)
{
new Trie:set = TrieCreate();
new strKey[12];

for(new i = 0; i < numElements; i++)
{
...
Forum: Scripting Help 05-27-2022, 05:39
Replies: 12
Views: 394
Posted By HamletEagle
Re: How to get unique id from array

If you always have the ids in sorted order like in your example, then the solution can be done more efficiently(one pass over 2 or O(n) vs O(n^2)) compared to ARUKARI's solution.

...
Showing results 1 to 25 of 500

 
Forum Jump

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


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