Monthly Target: $400 Donations: $131
 32% 

Showing results 1 to 25 of 500
Search took 0.13 seconds.
Search: Posts Made By: Bugsy
Forum: Code Snippets/Tutorials 07-23-2016, 21:41
Replies: 19
Views: 407
Posted By Bugsy
Re: [STOCK] cs_drop_user_weapon

I would shift the conditions in this to make the natives get called last.


if( is_user_alive( id ) && user_has_weapon( id, WeaponId ) && WeaponId < 30 && WeaponId > 0 )

to

if( ( 0 <...
Forum: Suggestions / Requests 07-19-2016, 19:57
Replies: 12
Views: 255
Posted By Bugsy
Re: [REQ] Admin Information

May as well add the players flags to the Info enum. This will avoid calling a native on a disconnect[ed\ing] player and it'll be one less native call per player.
Forum: Scripting Help 07-18-2016, 18:50
Replies: 3
Views: 135
Posted By Bugsy
Re: cvar doesnt work

Why do you have -1 here, that is essentially making the multiplier do nothing when the cvar is set to 2.

new xp = ( (Poke_PlayerLevel( victim, -1 ) ) * (get_cvar_num("pm_xpmultiplier") - 1) )

I...
Forum: Scripting Help 07-16-2016, 15:50
Replies: 7
Views: 167
Posted By Bugsy
Re: Giving people points once

Max player id is 32 which is where you would have an issue. Using id & 31 fixes this.
Forum: Scripting Help 07-16-2016, 15:21
Replies: 7
Views: 167
Posted By Bugsy
Re: Giving people points once

You will lose data if you left shift 32 bits. To handle this, use 1 << ( id & 31 )
Forum: Approved Plugins 07-15-2016, 22:13
Replies: 1,212
Views: 424,051
Posted By Bugsy
Re: AimBot Detection

My test was using HLDS with podbots.
Forum: Scripting Help 07-15-2016, 20:45
Replies: 32
Views: 594
Posted By Bugsy
Re: Ham_Use and Button id's (HELP)

I took a stab at this using a slightly different approach. My method uses the origin of the button to determine if it's one that you want to consider special. I added a command to the plugin say...
Forum: Approved Plugins 07-15-2016, 08:37
Replies: 1,212
Views: 424,051
Posted By Bugsy
Re: AimBot Detection

It took me approx 10 attempts to get myself detected, which I think is great. As siriusmd said, you need to aim way above your victims head to shoot the invisible bot after killing him, and you can...
Forum: Scripting Help 07-14-2016, 18:33
Replies: 7
Views: 170
Posted By Bugsy
Re: Merging two strings

Why? It's a wasted native call. client_cmd() accepts formatting arguments so why not just do it there?
Forum: Scripting Help 07-13-2016, 22:22
Replies: 7
Views: 170
Posted By Bugsy
Re: Merging two strings

Fixed, ty. I edited it a few times and must have forgotten to re-add it.
Forum: Scripting Help 07-13-2016, 20:30
Replies: 4
Views: 118
Posted By Bugsy
Re: Not sure what I did wrong

What do you mean that it is not counting time correctly? I recommend doing some debugging to confirm things are firing where they should be; put client_print() in various places to confirm code is...
Forum: Approved Plugins 07-13-2016, 20:15
Replies: 1,212
Views: 424,051
Posted By Bugsy
Re: AimBot Detection

Tested this myself and I get detected. I don't have an actual aimbot to test with, I just sprayed above the victims head after the kill and it caught me.
...
Forum: Scripting Help 07-13-2016, 20:09
Replies: 4
Views: 118
Posted By Bugsy
Re: Not sure what I did wrong

The time is army time, so 8 pm=20. Did you take that into consideration?
Forum: Scripting Help 07-13-2016, 18:50
Replies: 7
Views: 170
Posted By Bugsy
Re: Merging two strings

//You can use random() instead of random_num(). random() will return a value of 0 to max - 1.
variant[id] = random_num(0, (sizeof STARTROUND) - 1);

//native add(dest[],len,const src[],max=0);...
Forum: New Plugin Submissions 07-12-2016, 22:40
Replies: 44
Views: 2,345
Posted By Bugsy
Re: Armoury Manager

Update posted.
0.3b More code cleanup. (including fix for 1.8.2 compiler warnings)
0.3b Changed number of entities displayed per page to 10 in am_info command. I found this to be a safer value...
Forum: Scripting Help 07-11-2016, 16:39
Replies: 12
Views: 240
Posted By Bugsy
Re: set_user_deaths?

This has been asked before, have you searched? You also need to update the score board.

https://forums.alliedmods.net/showthread.php?t=87231
Forum: Suggestions / Requests 07-10-2016, 12:36
Replies: 28
Views: 463
Posted By Bugsy
Re: New method of detecting aimbot

You are crazy. Body hit info is captured.

https://forums.alliedmods.net/showthread.php?t=64707?t=64707
http://img.photobucket.com/albums/v293/vtecorona/statsss.jpg
Forum: Scripting Help 07-10-2016, 12:15
Replies: 7
Views: 150
Posted By Bugsy
Re: Check if constant is empty

While your first statement is true, !szSteamID[id][0] and szSteamID[id][0] == EOS are the same. EOS is a pre-defined constant for End Of String, which is 0/null char.
Forum: Scripting Help 07-09-2016, 11:16
Replies: 13
Views: 217
Posted By Bugsy
Re: Question about ids and loops

For something as simple as this, there will be no efficiency impact whether an if/else or switch is used. It just makes more sense for an if/else if there are only 2 possible outcomes. A switch, like...
Forum: Suggestions / Requests 07-09-2016, 11:10
Replies: 28
Views: 463
Posted By Bugsy
Re: New method of detecting aimbot

My aimbot detection plugin monitors player performance to decide whether or not it should begin watching him.

Here are the configurations for this. If the applicable ratio is met ad_awr_*, then...
Forum: Scripting Help 07-09-2016, 10:53
Replies: 13
Views: 217
Posted By Bugsy
Re: Question about ids and loops

It seems like you are just trying hard to provide input.

1. I already showed him how to handle this in an if/else. What does id % 2 do that id & 1 doesn't?
2. I don't understand why you are...
Forum: Approved Plugins 07-09-2016, 10:33
Replies: 1,212
Views: 424,051
Posted By Bugsy
Re: AimBot Detection

Can anyone else confirm whether or not this plugin is working? I no longer run a server and cannot test. I would think that there would be more reports if it was not working at all.
Forum: Scripting Help 07-09-2016, 10:26
Replies: 13
Views: 217
Posted By Bugsy
Re: Question about ids and loops

A switch is typically used when there are more than 2 possible outcomes. If there are only 2 possible outcomes then it makes more sense to use an if/else. As KliPPy said, the cases within the switch...
Forum: Scripting Help 07-09-2016, 10:15
Replies: 6
Views: 146
Posted By Bugsy
Re: DeathMsg

No. 1!2 means param 1 cannot equal the number 2. It doesn't check that param 1 is not equal to param 2. For this, you will need to check within the function.

You could have found this yourself in...
Forum: Scripting Help 07-09-2016, 10:02
Replies: 26
Views: 640
Posted By Bugsy
Re: Need some SQL help!

There is no reason to do this unless you are not using steam.
Showing results 1 to 25 of 500

 
Forum Jump

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


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