Raised This Month: $202 Target: $400
 50% 

Showing results 1 to 25 of 500
Search took 0.27 seconds.
Search: Posts Made By: Bugsy
Forum: Scripting Help 09-19-2017, 07:54
Replies: 6
Views: 176
Posted By Bugsy
Re: Floatround to next integer

My guess is 1 and 0 respectively. Try and let us know.
Forum: Scripting Help 09-18-2017, 20:06
Replies: 10
Views: 187
Posted By Bugsy
Re: Need some help block sound being played

Code looks good and I tested it myself on c4 beeps. Try making sure you are blocking the correct sound. Put this above the if ( equal() line.

client_print( 0 , print_chat , "Sounds=[%s]" , sample )
Forum: Scripting Help 09-16-2017, 16:21
Replies: 4
Views: 138
Posted By Bugsy
Re: [HELP] How can i get clients speed (Units per second)

Because idk, lol. Does it really matter 0 vs non-zero?

Also, OP, I realized this is only giving you how far he has traveled in the past 1 second which is probably not what you want. Are you...
Forum: Scripting Help 09-16-2017, 14:12
Replies: 4
Views: 138
Posted By Bugsy
Re: [HELP] How can i get clients speed (Units per second)

#include <amxmodx>
#include <fakemeta>

new const Version[] = "0.1";

#define MAX_PLAYERS 32

new bool:g_bTaskSet , Float:fPrevOrigin[ MAX_PLAYERS + 1 ][ 3 ];

public plugin_init()
Forum: Suggestions / Requests 09-10-2017, 09:41
Replies: 3
Views: 147
Posted By Bugsy
Re: [ESF] how to trigger something with aspecific amount of hp

I don't fully understand your question. Does this help?

#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>

public plugin_init()
{
RegisterHam( Ham_TakeDamage , "player" ,...
Forum: Suggestions / Requests 09-09-2017, 15:35
Replies: 39
Views: 506
Posted By Bugsy
Re: Damage message, help with DamageType

I guess you can try changing the damage type to fall when the player is a bot.

Try this:

public TakeDamage_Post( Victim , Inflictor , Attacker , Float:fDamage , bitDamage )
{
if (...
Forum: Suggestions / Requests 09-09-2017, 13:32
Replies: 39
Views: 506
Posted By Bugsy
Re: Damage message, help with DamageType

Can you test this with real players instead of bots?
Forum: Suggestions / Requests 09-09-2017, 13:12
Replies: 39
Views: 506
Posted By Bugsy
Re: Damage message, help with DamageType

Ok, get me the bitDamage value when bullet damage occurs. Replace function got called print with the below:

client_print( Attacker , print_chat , "bitDamage=%d" , bitDamage );
Forum: Suggestions / Requests 09-09-2017, 13:03
Replies: 39
Views: 506
Posted By Bugsy
Re: Damage message, help with DamageType

To make sure that code is getting reached, please put a client_print above the set_user_health() line. Also, this may be obvious, set_user_health() will only trigger for bullet damage. Are you...
Forum: Suggestions / Requests 09-09-2017, 12:57
Replies: 39
Views: 506
Posted By Bugsy
Re: Damage message, help with DamageType

Ok, then take damage hook is working fine for czero if you get output for fall damage. What exactly is not working with my latest code above?
Forum: Suggestions / Requests 09-09-2017, 12:49
Replies: 39
Views: 506
Posted By Bugsy
Re: Damage message, help with DamageType

Does the Ham_TakeDamage method work in CZero? Is this where you tested fall damage? Please forget about using the "Damage" event method.
Forum: Suggestions / Requests 09-09-2017, 12:08
Replies: 39
Views: 506
Posted By Bugsy
Re: Damage message, help with DamageType

Try this and see what the output is when you shoot someone:

RegisterHam( Ham_TakeDamage , "player" , "TakeDamage_Post" , true );

public TakeDamage_Post( Victim , Inflictor , Attacker ,...
Forum: Suggestions / Requests 09-09-2017, 12:05
Replies: 39
Views: 506
Posted By Bugsy
Re: Damage message, help with DamageType

I was getting the same result in 1.6 with the 3rd param in the Damage event. I changed the damage detection from the Damage event to Ham TakeDamage. Have you tried testing it in cz?
Forum: Suggestions / Requests 09-09-2017, 11:30
Replies: 39
Views: 506
Posted By Bugsy
Re: Damage message, help with DamageType

You will need to do some debugging on your own then. Use client_print() on some of the variables in question to see if they hold the values that are expected -- as you said this may be due to you...
Forum: Suggestions / Requests 09-09-2017, 11:28
Replies: 39
Views: 506
Posted By Bugsy
Re: Damage message, help with DamageType

Fixed some things, try it now.
Forum: Suggestions / Requests 09-08-2017, 22:04
Replies: 39
Views: 506
Posted By Bugsy
Re: Damage message, help with DamageType

I did some work on this but it will take some more work eg. overall functional fixes and things like partial clip purchasing, better HUD, etc. Give it a try:

Edit: Code updates to fix things and...
Forum: Suggestions / Requests 09-07-2017, 22:32
Replies: 39
Views: 506
Posted By Bugsy
Re: Damage message, help with DamageType

@Reel mafioso, I will take a look sometime this weekend for you.

@Natsheh, I also want to clarify that what you have is correct for checking that only a single bit exists. A simple DamageBits &...
Forum: Suggestions / Requests 09-06-2017, 17:58
Replies: 39
Views: 506
Posted By Bugsy
Re: Damage message, help with DamageType

I agree with kristi, you should use bit-wise operators when working with bitsums. Yes, a direct == will work, but it's more proper to check the specific bit(s) you're looking for. If you are checking...
Forum: Scripting Help 09-03-2017, 12:27
Replies: 6
Views: 143
Posted By Bugsy
Re: Help Tag mismatch, on fm_set_user_health

Show me the line of code where you use PlayerHealths[ g_PlayerType[ id ] ]
Forum: Scripting Help 09-03-2017, 08:59
Replies: 6
Views: 143
Posted By Bugsy
Re: Help Tag mismatch, on fm_set_user_health

It's not clear exactly what you're trying to do. Are you trying to set the health value based on what a player selects in the menu?

I'm thinking maybe your intention is to set the g_PlayerType[]...
Forum: Scripting Help 09-02-2017, 09:25
Replies: 6
Views: 176
Posted By Bugsy
Re: Floatround to next integer

/* Different methods of rounding */
enum floatround_method {
floatround_round = 0,
floatround_floor,
floatround_ceil,
floatround_tozero
};


new Float:fVal = 12.1;
Forum: New Plugin Submissions 09-02-2017, 09:17
Replies: 46
Views: 4,013
Posted By Bugsy
Re: Armoury Manager

No, the shield is not considered an armoury entity. Below are the supported weapons. I suppose it could be done, but it would be basically a lot of manual work to make a weapon entity function like...
Forum: Scripting Help 09-01-2017, 21:41
Replies: 21
Views: 806
Posted By Bugsy
Re: [HELP] Detect Team Change (cstrike)

My current build doesn't have that 4th parameter defined, but try?

new iSendTeamInfo = OrpheuMemoryGetAtAddress( GetParams( params , 4 ) , "int" );
Forum: Scripting Help 08-27-2017, 12:22
Replies: 4
Views: 108
Posted By Bugsy
Re: How to convert char to int?

To further explain: When you access a single character in your string, you will get the ascii code value for the character, in this case you are working with characters '0' to '9'; below are the...
Forum: Suggestions / Requests 08-15-2017, 18:23
Replies: 1
Views: 103
Posted By Bugsy
Re: Lower Auto Sniper Damage/Hits

Cvars:

rasd_enabled - Enables/disables plugin (default 1)
rasd_chatenabled - Enables/disables chat message to shooter letting him know of damage reduction (default 1)

The below cvars set the...
Showing results 1 to 25 of 500

 
Forum Jump

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


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