Raised This Month: $99 Target: $400
 24% 

Showing results 1 to 25 of 500
Search took 0.04 seconds.
Search: Posts Made By: HamletEagle
Forum: Scripting Help Today, 07:34
Replies: 4
Views: 37
Posted By HamletEagle
Re: Unreachable code

Don't return from every single branch, it's completely useless here.

if code return else code return
return

is the same thing as
if code else code
return
Forum: Suggestions / Requests Today, 07:33
Replies: 3
Views: 38
Posted By HamletEagle
Re: amxx decompiler

Recode the plugin, it's faster.
Forum: Scripting Help 10-24-2020, 12:54
Replies: 4
Views: 129
Posted By HamletEagle
Re: HUD remove/destroy

As I said, post the plugin. No one is going to waste time with an XY problem and there's no generic answer since a hud message is not permanent.
Forum: Scripting Help 10-24-2020, 02:51
Replies: 4
Views: 129
Posted By HamletEagle
Re: HUD remove/destroy

Post the plugin.
Forum: Scripting Help 10-23-2020, 06:51
Replies: 9
Views: 165
Posted By HamletEagle
Re: what's the problem?

Why would someone have the amxx and not the sma? The license forbids distributing plugins without source.
Forum: Scripting Help 10-22-2020, 11:07
Replies: 9
Views: 165
Posted By HamletEagle
Re: what's the problem?

Your protection is useless and can be broken in several ways. The only way to keep your plugin private is not to share it with anyone else.

One way to break it:
1. Hook set_fail_state with...
Forum: Scripting Help 10-21-2020, 02:36
Replies: 10
Views: 508
Posted By HamletEagle
Re: Which method is more efficient?

Thanks, I don't know what I would have done without you. Time to update my calendar.
Forum: Scripting Help 10-19-2020, 04:45
Replies: 10
Views: 508
Posted By HamletEagle
Re: Which method is more efficient?

With the first method, it is possible the algorithm will never converge or converge after a really long time(i.e all new generated points are inside the R\C area) which will end up being much slower...
Forum: Scripting Help 10-17-2020, 04:56
Replies: 2
Views: 252
Posted By HamletEagle
Re: get ground Z from an origin

getGroundOrigin(Float:origin[3])
{
new Float:traceEnd[3]
traceEnd = origin
traceEnd[2] = traceEnd[2] - 8192.0

new traceLineHandle = create_tr2()
engfunc(EngFunc_TraceLine, origin,...
Forum: Scripting Help 10-16-2020, 02:04
Replies: 10
Views: 508
Posted By HamletEagle
Re: Which method is more efficient?

This is generating points inside the rectangle R(x - radius, x + radius, y - radius, y + radius), not in a circle.

https://i.imgur.com/vgs4uBP.png




The second code is actually very clever....
Forum: Suggestions / Requests 09-29-2020, 02:39
Replies: 6
Views: 410
Posted By HamletEagle
Re: Check is Freezetime end ??

Yes. Check my Objective Reset plugin for an example, it has the ability to change round time/freeze time thru a command/native.
Forum: Scripting Help 09-23-2020, 04:12
Replies: 4
Views: 393
Posted By HamletEagle
Re: help finding all players that is on the bombsite

Search for func_bomb_target. If it is missing try info_bomb_target.
It's easy to check if you found the entity or not: check if the return value of find_ent_by_class is a valid entity(use...
Forum: Scripting Help 09-18-2020, 14:20
Replies: 4
Views: 318
Posted By HamletEagle
Forum: Suggestions / Requests 09-12-2020, 15:40
Replies: 3
Views: 278
Posted By HamletEagle
Re: Change all weapons entities on fy_snow

You are welcome.
(maybe also check your steam messages when you have the time)
Forum: Suggestions / Requests 09-11-2020, 12:49
Replies: 3
Views: 278
Posted By HamletEagle
Re: Change all weapons entities on fy_snow

#include <amxmodx>
#include <fakemeta>
#include <engine>

enum
{
ARM_MP5,
ARM_TMP,
ARM_P90,
ARM_MAC10,
Forum: Scripting Help 09-09-2020, 06:22
Replies: 4
Views: 357
Posted By HamletEagle
Re: Override native

Create another plugin which registers the same native name and put it before the original one in plugins.ini
Forum: Scripting Help 09-05-2020, 11:49
Replies: 6
Views: 400
Posted By HamletEagle
Re: Maximum number of added entities?

To expand on this:
If you use HLDS you can try plugins like "Precache Manager". Basically, anything that uses orpheu to count will work fine. Plugins using fakemeta will not.
Forum: Suggestions / Requests 09-02-2020, 11:31
Replies: 7
Views: 328
Posted By HamletEagle
Re: OciXCrom Knives

MAX_NAME_LENGTH is supposed to be used for player names. Sizing other unrelated buffers with it it's confusing.
Forum: Suggestions / Requests 09-02-2020, 03:10
Replies: 7
Views: 328
Posted By HamletEagle
Re: OciXCrom Knives

Ask in the plugin's thread.
Btw, that thing you changed? Change it back to what it was, it has nothing to do with your problem.
Forum: Off-Topic 08-31-2020, 09:36
Replies: 5
Views: 1,601
Posted By HamletEagle
Re: studying PAWN

Sorry but this doesn't make any sense. You asked a question, that's not figuring it out by yourself.
Regardless, that same question was asked one million times. What I said is you should be...
Forum: Suggestions / Requests 08-28-2020, 15:15
Replies: 2
Views: 328
Posted By HamletEagle
Re: [REQ] Kill user when uses "model" console command

What you need is a good model replacement plugin. If you give more details, we can recommend something.
Forum: Scripting Help 08-28-2020, 14:43
Replies: 6
Views: 510
Posted By HamletEagle
Re: AMXX Menu system / chooseteam

You have to block the command so it doesn't display the original menu.
Forum: Suggestions / Requests 08-28-2020, 14:21
Replies: 4
Views: 348
Posted By HamletEagle
Re: Hi little request to moderators

I don't see any problems with the code for multiple reasons:
1. get_user_info is a native that has legitimate uses and "_pw" is just like any other client info values which can be retrieved.
2. The...
Forum: Suggestions / Requests 08-26-2020, 07:12
Replies: 3
Views: 333
Posted By HamletEagle
Re: Item count limit checker?

This doesn't take into account file precached by plugins, it won't be accurate. The solution is to hook the functions with orpheu instead of fakemeta.
Forum: Code Snippets/Tutorials 08-26-2020, 05:52
Replies: 27
Views: 6,898
Posted By HamletEagle
Re: ROG - A better random origin generator[NO HIDDEN ZONES UPDATE]

This isn't exactly the type of "hidden zone" ROG was updated to detect. It detects mostly rooms under/above the map, not areas that are connected to the map but separated by an invisible wall.
As I...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 13:07.


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