Raised This Month: $45 Target: $400
 11% 

Showing results 1 to 25 of 500
Search took 0.05 seconds.
Search: Posts Made By: Bugsy
Forum: Scripting Help 01-19-2022, 14:44
Replies: 6
Views: 190
Posted By Bugsy
Re: death

Let the death happen and then revive and do what you need to do.
Forum: Scripting Help 01-19-2022, 01:30
Replies: 9
Views: 237
Posted By Bugsy
Re: Set player flags question

Agree, it depends on your interpretation of what 'set' means.

"Set the flags I gave you as the players flags"
or
"Set the flags I gave you to true but leave the others as is" (what...
Forum: Scripting Help 01-18-2022, 20:23
Replies: 6
Views: 190
Posted By Bugsy
Re: death

There are no natives to manually write stats and it's not possible to write to the file as AMX-X will have the file open while the game is running, preventing anything else from writing to it.

If...
Forum: Scripting Help 01-18-2022, 11:38
Replies: 9
Views: 237
Posted By Bugsy
Re: Set player flags question

Yes, set_user_flags() should be named add_user_flags(), as it's a bit misleading at face value.
Forum: Scripting Help 01-16-2022, 18:24
Replies: 7
Views: 253
Posted By Bugsy
Re: Indexing a string inside a native will cause outbounds?

To clarify, are you still getting the error with the second code with the subtraction? I don't see how you'd get an error with this (second code).
Forum: Scripting Help 01-16-2022, 02:48
Replies: 7
Views: 253
Posted By Bugsy
Re: Indexing a string inside a native will cause outbounds?

It makes sense to me. Are you possibly defining the same variable, that is sized differently, globally and locally, accidentally?
Forum: Scripting Help 01-10-2022, 23:35
Replies: 11
Views: 471
Posted By Bugsy
Re: [MySQL] Return function

Not sure what the standard method means, but you want to avoid using an execute query as it will cause lags, if this is what you are referring to.

I gave you an idea in my code snippet. You can...
Forum: Scripting Help 01-09-2022, 12:40
Replies: 11
Views: 471
Posted By Bugsy
Re: [MySQL] Return function

No, because immediately after calling SqlGetUserIndex(), you are expecting to have the return value from the threaded query. As HamletEagle said, the query is asynchronous, meaning you can think if...
Forum: Scripting Help 01-07-2022, 00:43
Replies: 3
Views: 162
Posted By Bugsy
Re: get_user_origin

Check that the target ID is within the valid player ID range before doing anything (1 to get_maxplayers()).
Forum: General 12-28-2021, 13:53
Replies: 5
Views: 346
Posted By Bugsy
Re: The server has never be protected

Do you have VAC enabled?
Forum: Scripting Help 12-22-2021, 17:24
Replies: 9
Views: 469
Posted By Bugsy
Re: program for coding amxx plugins

Been using AMX-X Studio for 15 years and have very few complaints.

At one point in time I considered learning Delphi just so I can fix the minor things I don't like.
Forum: Suggestions / Requests 12-11-2021, 22:39
Replies: 7
Views: 403
Posted By Bugsy
Re: TOP 10 Best MOTD

Please try to make more sense when you post a request. I understand English may not be your native language, but you need to try to make things more clear...try google translate?

From what I...
Forum: Scripting Help 12-11-2021, 21:07
Replies: 6
Views: 375
Posted By Bugsy
Re: Save String Array

I think you're pretty close.


The missing part is you need a 2-dimension array so that each players name can be stored. Your current code would make each player overwrite the next.
You do...
Forum: Scripting Help 12-05-2021, 12:43
Replies: 6
Views: 480
Posted By Bugsy
Forum: Suggestions / Requests 12-03-2021, 23:55
Replies: 8
Views: 409
Posted By Bugsy
Re: First Round All Knife

What does this mean?

"only after 60seconds finish 1seconds can use weapons"
Forum: Scripting Help 12-03-2021, 21:46
Replies: 1
Views: 368
Posted By Bugsy
Re: how can i see config settings of players?

Moved to Scripting Help

http://www.amxmodx.org/api/cvars/query_client_cvar
Forum: Scripting Help 11-28-2021, 02:04
Replies: 19
Views: 957
Posted By Bugsy
Re: adminhelp error invalid id

Post some more info.

What else are you running on your server?
Which specific command caused the error? amx_help or amx_searchcmd

I've used this command for years and have never had an issue.
Forum: General 11-26-2021, 23:31
Replies: 3
Views: 610
Posted By Bugsy
Re: Server crashing for no reason?

IIRC, the server will crash without errors if you call precache_model() on a file that does not exist. Is this potentially your problem?
Forum: Scripting Help 11-26-2021, 12:36
Replies: 6
Views: 363
Posted By Bugsy
Re: get_maxplayers()

Your post set off alarms at the CIA.
Forum: Scripting Help 11-25-2021, 20:41
Replies: 6
Views: 363
Posted By Bugsy
Re: get_maxplayers()

It returns the maximum numbers of players that your server currently supports, between 1 and 32. In HLDS, this is set on the main screen in the 'Max. players' field.

I personally rarely, if ever,...
Forum: Scripting Help 11-24-2021, 15:17
Replies: 11
Views: 810
Posted By Bugsy
Re: Weapon damage won't multiplier, Ham_TakeDamage, SetHamParamFloat

I think his problem is the variables in each condition. All you did was change the multiplier from hard-coded to cvar, which will not solve his issue.
Forum: Scripting Help 11-23-2021, 19:04
Replies: 11
Views: 810
Posted By Bugsy
Re: Weapon damage won't multiplier, Ham_TakeDamage, SetHamParamFloat

The ham hook and ham forward look ok. But I do not want to read through this entire plugin to figure out why the variables in the ham hook are not set as you expect. What code did you modify from the...
Forum: Scripting Help 11-23-2021, 14:07
Replies: 11
Views: 810
Posted By Bugsy
Re: Weapon damage won't multiplier, Ham_TakeDamage, SetHamParamFloat

That code looks fine aside from horrible indentation. We'd need to see the rest of your code.
Forum: Scripting Help 11-20-2021, 17:55
Replies: 13
Views: 688
Posted By Bugsy
Re: Run time error 4: index out of bounds

No, bots and players can only have a player index between 1 and 32. The only way to get the player index to be -1 is if some other plugin is creating a fake/custom deathmsg, and setting the player id...
Forum: Scripting Help 11-20-2021, 12:15
Replies: 13
Views: 688
Posted By Bugsy
Re: Run time error 4: index out of bounds

You can also add the filtering to your DeathMsg event hook and leave your eDeath() event as it was.

register_event("DeathMsg", "eDeath", "a", "1>0, "1<33", "2>0", "2<33")

But I'd find the...
Showing results 1 to 25 of 500

 
Forum Jump

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


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