Raised This Month: $322 Target: $400
 80%   Almost there!

Showing results 1 to 25 of 500
Search took 0.14 seconds.
Search: Posts Made By: Bugsy
Forum: Scripting Help 04-01-2017, 12:36
Replies: 11
Views: 275
Posted By Bugsy
Re: MySQL prune database

I still do not understand what you are trying to accomplish here. IMO, each player should have a single row in your table, with all data relevant to him for all connections. When he connects, you...
Forum: Scripting Help 03-30-2017, 18:14
Replies: 11
Views: 275
Posted By Bugsy
Re: MySQL prune database

But you do realize your db will only show data for a person's single connection to your server. Shouldn't this show overall stats over time (cumulative)?
Forum: Scripting Help 03-30-2017, 17:36
Replies: 11
Views: 275
Posted By Bugsy
Re: MySQL prune database

Your plugin basically starts everyone at 0 every time they connect. You should call a Load procedure at client_authorized() to get their previous stats.
Forum: Scripting Help 03-27-2017, 21:13
Replies: 11
Views: 275
Posted By Bugsy
Re: MySQL prune database

I would just do the db calls as needed using threaded queries (SQLx). I'm still not sure of what the big picture is of your request. If you want to prune, just do a DELETE FROM with date range query.
Forum: Scripting Help 03-26-2017, 09:21
Replies: 11
Views: 275
Posted By Bugsy
Re: MySQL prune database

The topic title and your question do not seem like the same thing. What are you trying to accomplish?
Forum: Suggestions / Requests 03-19-2017, 16:01
Replies: 3
Views: 60
Posted By Bugsy
Re: Ham_Weapon_ExtractClipAmmo

Info is in ham_const.inc

/**
* Description: Gets clip ammo from the target weapon.
* This function is not supported in Earth's Special Forces mod.
* Forward params: function(this,...
Forum: Scripting Help 03-19-2017, 12:25
Replies: 2
Views: 99
Posted By Bugsy
Re: SQL Query error

Need to know value of szBuffer

Also, try ORDER BY user_id
Forum: Suggestions / Requests 03-18-2017, 19:01
Replies: 35
Views: 703
Posted By Bugsy
Re: Auto admin removal after days

Can easily be done with nvault array
Forum: Suggestions / Requests 03-18-2017, 18:30
Replies: 35
Views: 703
Posted By Bugsy
Re: Auto admin removal after days

How about a menu system

1. Add Admin - Show a menu of all non-permanent admins currently in game, select to add as temp
2. Remove Admin - Show a menu of all current temporary admins, select to...
Forum: Suggestions / Requests 03-18-2017, 16:15
Replies: 35
Views: 703
Posted By Bugsy
Re: Auto admin removal after days

You still did not answer my question. I'm not going to build it to use users.ini unless you give a valid reason.
Forum: Suggestions / Requests 03-18-2017, 13:25
Replies: 35
Views: 703
Posted By Bugsy
Re: Auto admin removal after days

That would be a lot more work.

What functionality is this missing that you want? I think it is cleaner to only list real admins in users.ini. This will handle all temps.
Forum: Suggestions / Requests 03-18-2017, 12:36
Replies: 35
Views: 703
Posted By Bugsy
Re: Auto admin removal after days

Not thoroughly tested.

This allows adding admins for X number of days (precise to the second). You may only add players who do not exist in users.ini. If you use the addtempadmin command on a...
Forum: Suggestions / Requests 03-18-2017, 10:53
Replies: 35
Views: 703
Posted By Bugsy
Re: Auto admin removal after days

That's your opinion and that is fine. I explained why I asked what I asked. Back on topic
Forum: Suggestions / Requests 03-18-2017, 10:25
Replies: 35
Views: 703
Posted By Bugsy
Re: Auto admin removal after days

lol.

People do not always express things as they intend, especially if English is not their native language.
People frequently post requests in the wrong forum.
Why would the source not be...
Forum: Suggestions / Requests 03-18-2017, 10:21
Replies: 62
Views: 1,969
Posted By Bugsy
Re: Online player nicks in hud

The Y coordinate needs more separation. Modify the 0.62 value to bring the CT list higher or lower on the screen.

//For left side of screen
new const Float:g_fHUDCoords[ Teams ][ Coords ] =
{
...
Forum: Suggestions / Requests 03-18-2017, 10:07
Replies: 35
Views: 703
Posted By Bugsy
Re: Auto admin removal after days

Moved to suggestions/requests.


What do you mean 'something like this'? Are you looking for a login system where admins need to specify a password? If so, why not use the plugin that you linked?...
Forum: Scripting Help 03-17-2017, 19:42
Replies: 4
Views: 149
Posted By Bugsy
Re: Player in visible range

new Float:fOrigin[ 3 ];
pev( Player2ID , pev_origin , fOrigin );

if ( is_in_viewcone( Player1ID , fOrigin ) )
{
//Player1ID can 'see' Player2ID
}

You can do a traceline to make sure...
Forum: Suggestions / Requests 03-13-2017, 22:32
Replies: 4
Views: 104
Posted By Bugsy
Re: ''Real'' hide words in chat.

#define PLUGIN_CONTINUE 0 /* Results returned by public functions */
#define PLUGIN_HANDLED 1 /* stop other plugins */
#define PLUGIN_HANDLED_MAIN 2 /* to use in client_command(),...
Forum: Scripting Help 03-12-2017, 11:13
Replies: 14
Views: 216
Posted By Bugsy
Re: nvault crashing the server

nvault_get() will not cause crashes. Can you show the code in question? I'm curious as to why it was causing a crash.
Forum: Scripting Help 03-12-2017, 10:53
Replies: 14
Views: 216
Posted By Bugsy
Re: nvault crashing the server

You cannot save anything as an integer. nVault allows only saving as strings.

So you can save "5" as a string and then use nvault_get() to return it as an integer. nvault_get() can be used in 3...
Forum: Suggestions / Requests 03-11-2017, 21:34
Replies: 9
Views: 196
Posted By Bugsy
Re: Messed up vault.

Look in the thread for nvault editor for how to resolve that issue.
Forum: Scripting Help 03-11-2017, 19:16
Replies: 14
Views: 216
Posted By Bugsy
Re: nvault crashing the server

Nothing happens, nvault allows saving empty data.

Your timing for doing things looks good.

nvault_get() needs to be used carefully. If you want to retrieve data and know when the key did or did...
Forum: Suggestions / Requests 03-11-2017, 16:23
Replies: 62
Views: 1,969
Posted By Bugsy
Re: Online player nicks in hud

Try this:

set_dhudmessage( g_iHUDRGB[ Team_T ][ Red ] , g_iHUDRGB[ Team_T ][ Green ] , g_iHUDRGB[ Team_T ][ Blue ] , g_fHUDCoords[ Team_T ][ Coord_X ] , g_fHUDCoords[ Team_T ][ Coord_Y ] , 0 , 0.0...
Forum: Scripting Help 03-11-2017, 16:06
Replies: 2
Views: 78
Posted By Bugsy
Re: Error 008 : Please help !

As the error says, you cannot use non-constants in a switch.

Think about the logic behind the rule. When you set up a switch, you want react a particular way for a list of possible values. If you...
Forum: Scripting Help 03-11-2017, 15:22
Replies: 14
Views: 216
Posted By Bugsy
Re: nvault crashing the server

Show all code where data gets written to the vault. If you were never calling nvault_close() then you are asking for trouble.

OciXCrom, nVault should allow empty keys and data.
Showing results 1 to 25 of 500

 
Forum Jump

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


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