Monthly Target: $400 Donations: $343
 85% 

Showing results 1 to 25 of 500
Search took 0.10 seconds.
Search: Posts Made By: Bugsy
Forum: Scripting Help Yesterday, 20:44
Replies: 14
Views: 172
Posted By Bugsy
Re: Any other way to check admins

A cell is 4 bytes, each byte is 8 bits so in a cell you have 32 bits. A bit can only have one of 2 values, 0 or 1. By default, all bits are set to 0. Each one of those 0's is used as a boolean flag...
Forum: Suggestions / Requests Yesterday, 19:09
Replies: 25
Views: 434
Posted By Bugsy
Re: Help storing

Can you upload your database file so I can take a look and test it on my machine? Mask the steam-id's for privacy. If you dont have anything to do this with, I highly recommend DB Browser for SQLite...
Forum: Suggestions / Requests Yesterday, 17:13
Replies: 25
Views: 434
Posted By Bugsy
Re: Help storing

Does the database file exist? HLServer\cstrike\addons\amxmodx\data\sqlite3\Aces.sq3

I'm not sure that it's an actual connection problem, appears to be an issue with a query. At what point does...
Forum: Scripting Help Yesterday, 17:07
Replies: 14
Views: 172
Posted By Bugsy
Re: Any other way to check admins

public client_putinserver( id )
{
//is_user_admin() returns 1 if the player is an admin, so in that case a value will be added to
//the g_Admins bit-sum (1<<#). If the player is not an...
Forum: Scripting Help Yesterday, 17:00
Replies: 2
Views: 60
Posted By Bugsy
Re: [HELP] Enum (value) (string)

Can you give an example of what you're trying to do. This may be doable.

Does this help? An enum isn't necessary for this, but it keeps your code clean so you are not using array[#][#], instead...
Forum: Scripting Help Yesterday, 10:53
Replies: 14
Views: 172
Posted By Bugsy
Re: Any other way to check admins

Not necessary. It will remove the bit if it is set, if its not set then it'll do nothing. No sense in calling the is_user_admin() native since it's cheaper to just un-set it regardless of it actually...
Forum: Scripting Help Yesterday, 07:39
Replies: 14
Views: 172
Posted By Bugsy
Re: Any other way to check admins

#include <amxmodx>
#include <amxmisc>

new g_Admins;

public plugin_init()
{
register_plugin( "Are Admins Online" , "0.1" , "bugsy" );

register_clcmd( "say /admins" , "CheckOnline" );
Forum: Suggestions / Requests Yesterday, 07:26
Replies: 25
Views: 434
Posted By Bugsy
Re: Help storing

You are using the wrong code, this is the latest:

https://forums.alliedmods.net/showpost.php?p=2324294&postcount=18
Forum: Scripting Help 07-27-2015, 20:56
Replies: 10
Views: 133
Posted By Bugsy
Re: [ Ham_TakeDamage ] what wrong?

Keep in mind that the damage passed into Ham_TakeDamage is not the loss in hp damage value; it is the damage inflicted onto the player, but if the player has armor then this damage value gets offset...
Forum: Suggestions / Requests 07-25-2015, 13:22
Replies: 42
Views: 696
Posted By Bugsy
Re: Ban if no return in 5 minutes.

That might work, I would wrap the %s in quotes, so:

public BanPlayer( const szAuthID[] )
{
server_cmd( "amx_ban %d 1200 ^"%s^"" , get_pcvar_num( g_pBanMinutes ) , szAuthID );
}
Forum: Suggestions / Requests 07-25-2015, 13:19
Replies: 25
Views: 434
Posted By Bugsy
Re: Help storing

Here it is using SQL. It was not tested thoroughly, let me know if you have issues:

Edit: Updated to show players own rank when he uses /ace command (top15)

#include <amxmodx>
#include...
Forum: Scripting Help 07-24-2015, 19:58
Replies: 49
Views: 1,740
Posted By Bugsy
Re: Hours is not saved

Here's an SQL version. I did not have time to test it.

#include <amxmodx>
#include <amxmisc>
#include <sqlx>

new const Version[] = "0.4";

const AW_ADMIN_FLAG = ADMIN_KICK;
const...
Forum: Scripting Help 07-21-2015, 21:31
Replies: 37
Views: 846
Posted By Bugsy
Re: [SOLVED] How to get Player's distance from wall

This tells the traceline how to respond. Take a look at the Trace Functions section here: https://wiki.alliedmods.net/FakeMeta_Functions_Detailed_Descriptions

#define IGNORE_MONSTERS ...
Forum: Scripting Help 07-17-2015, 23:57
Replies: 11
Views: 199
Posted By Bugsy
Re: Help with death count

It's working for me. I deleted my database to make it a fresh install. I played a game and killed 2 enemies then used /stats and /top15 and it did not reflect these kills. I disconnected and...
Forum: Scripting Help 07-17-2015, 12:48
Replies: 11
Views: 199
Posted By Bugsy
Re: Help with death count

Hmm I'll have to look. Net kills is calculated as kills-deaths.
Forum: Suggestions / Requests 07-17-2015, 08:38
Replies: 42
Views: 696
Posted By Bugsy
Re: Ban if no return in 5 minutes.

If you want to change to another ban system that's fine, just modify the server cmd line that sends the ban command.
Forum: Suggestions / Requests 07-17-2015, 08:37
Replies: 25
Views: 434
Posted By Bugsy
Re: Help storing

I'll change to sql for you
Forum: Scripting Help 07-17-2015, 08:36
Replies: 11
Views: 199
Posted By Bugsy
Re: Help with death count

It doesn't 'calculate' by steamid, but that is used as the users database primary key. Are you running a non steam server?

Hamlet.Eagle... What?? Lol
Forum: Scripting Help 07-16-2015, 20:00
Replies: 37
Views: 846
Posted By Bugsy
Re: [SOLVED] How to get Player's distance from wall

Cool, no problem. I wonder if he can just set properties of the entity to make it not get stuck into a wall.
Forum: Scripting Help 07-16-2015, 19:06
Replies: 11
Views: 199
Posted By Bugsy
Re: Help with death count

#include <amxmodx>
#include <cstrike>
#include <sqlx>

// Uncomment the below to enable real-time stats which will be less efficient because 2 SQL transactions
// will occur for each kill....
Forum: Suggestions / Requests 07-15-2015, 18:55
Replies: 25
Views: 434
Posted By Bugsy
Re: Help storing

Fixed. The way I originally coded it limited it to 800 players, now it is set to 5000. If you have more players than that in your vault then you will get the same error again. I added code to prune...
Forum: Scripting Help 07-15-2015, 12:22
Replies: 11
Views: 199
Posted By Bugsy
Re: Help with death count

It would be easier to make a separate stats system that works exactly as you want. I recommend using SQL to make your top15 easier and efficient. If you can, list your requirements and I can put it...
Forum: Scripting Help 07-14-2015, 18:42
Replies: 37
Views: 846
Posted By Bugsy
Re: [HELP] How to get Player's distance from wall

Updated above code with traceline
Forum: Scripting Help 07-14-2015, 16:44
Replies: 26
Views: 424
Posted By Bugsy
Re: How to get HEAD hitbox origin?

Take a look at my aimbot detection plugin, it detects which body part was hit.
Forum: Scripting Help 07-14-2015, 16:25
Replies: 37
Views: 846
Posted By Bugsy
Re: [HELP] How to get Player's distance from wall

You can do a traceline from the player to the point ( 128 ) and if it didn't hit anything create entity at 64.
Showing results 1 to 25 of 500

 
Forum Jump

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


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