Raised This Month: $89 Target: $400
 22% 

Showing results 1 to 25 of 500
Search took 0.29 seconds.
Search: Posts Made By: Bugsy
Forum: Scripting Help 08-05-2019, 19:00
Replies: 5
Solved String
Views: 352
Posted By Bugsy
Re: String

You are probably getting errors. Add ' debug' after your plugin in plugins.ini. You are better off with explaining what you are trying to do instead of asking for help in 'code talk'.

public...
Forum: Code Snippets/Tutorials 08-01-2019, 19:01
Replies: 12
Views: 1,965
Posted By Bugsy
Re: [TUT] nVault Top 15

Above code is fixed.

Here's a combined code with top 15 and rank


#include <amxmodx>
#include <nvault>
#include <nvault_util>
#include <nvault_array>
Forum: Code Snippets/Tutorials 07-31-2019, 20:52
Replies: 12
Views: 1,965
Posted By Bugsy
Re: [TUT] nVault Top 15

It's not very efficient, especially when you have a lot of records in your vault...I recommend SQL. Only quickly tested.

public GetRank( id )
{
enum _:Top15Info
{
nVault_Offset,...
Forum: Scripting Help 07-29-2019, 23:07
Replies: 1
Views: 316
Posted By Bugsy
Re: Best way count players

May be easiest to use get_players with the team flag. To do it manually I'd do this:

new iTeamCounts[ CsTeams ];

for (new i=1; i<=MAX_JOGADORES; i++)
{
if ( is_user_alive( i ) )
{...
Forum: Scripting Help 07-20-2019, 22:04
Replies: 3
Views: 371
Posted By Bugsy
Re: Doubt, one player from each team

That will work fine assuming ibestPlayerT and ibestplayerCT contain valid/connected player ID's on the applicable team. If this is the case, you do not even need to check their team since this has...
Forum: Scripting Help 07-20-2019, 12:28
Replies: 6
Views: 336
Posted By Bugsy
Re: Easy question

Also, the scope of the id variable is limited to the for-loop, it should be defined outside if it is needed outside of the loop.
Forum: Scripting Help 07-04-2019, 11:10
Replies: 9
Views: 492
Posted By Bugsy
Re: Set Damage

Keep in mind that increasing the damage doesn't result in that exact loss in HP to the victim. Damage is offsetted by armor that the victim may have.

E.g. Inflicting 10.5 extra in damage will not...
Forum: Scripting Help 07-01-2019, 17:58
Replies: 15
Views: 1,225
Posted By Bugsy
Re: How can I check that?

EFFx, why not do this:
#define GetAngle2(%1,%2) (%1 + ( %2 * 15 ))

//or

GetAngle( iAngle , iIndex )
{
return iAngle + ( iIndex * 15 );
}
Forum: Scripting Help 06-20-2019, 18:53
Replies: 15
Views: 1,225
Posted By Bugsy
Re: How can I check that?

How about this?

This will check if iValueToCheck is >= fVariance percent of iCompareToValue.


public plugin_init()
{
server_print( "Is 95 >= 90%% of 100? = %s" , AlmostTheSame( 100 , 95 ,...
Forum: Scripting Help 06-15-2019, 10:58
Replies: 16
Views: 1,083
Posted By Bugsy
Re: Total Kills of a team

shadow728988, just wanted to give you some info on the difference between my code and thEsp's code.

thEsp's code will sum the kills of all players currently on each team, so if a player changes...
Forum: Scripting Help 06-13-2019, 18:46
Replies: 16
Views: 1,083
Posted By Bugsy
Re: Total Kills of a team

#include <amxmodx>
#include <cstrike>

new csTeamScore[ CsTeams ];

public plugin_init()
{
register_plugin( "hud" , "" , "rinf" );

register_event( "DeathMsg" , "Event_DeathMsg" , "a" ,...
Forum: Scripting Help 06-09-2019, 19:08
Replies: 5
Views: 825
Posted By Bugsy
Re: read data from events and hook 2 things

Not sure if the % is or isn't causing an issue here. Try checking only the part of the string with the team name:

#include <amxmodx>

public plugin_init( )
register_event( "SendAudio", "win",...
Forum: Scripting Help 06-09-2019, 15:54
Replies: 5
Views: 825
Posted By Bugsy
Re: read data from events and hook 2 things

Why don't you try it and find out for yourself?
Forum: Scripting Help 06-09-2019, 11:07
Replies: 3
Views: 646
Posted By Bugsy
Re: Need help with SQL Queries

StartDate & Days are integers so you should use the following format: Startdate = SQL_ReadResult(query, qcolStartdate );

You should use an <= condition in your query:
SQL_QueryAndIgnore(sql,...
Forum: Suggestions / Requests 06-05-2019, 17:45
Replies: 11
Views: 937
Posted By Bugsy
Re: Admins Playtime

Try now, I don't think 1.8.2 or 1.8.3 like client_disconnected()

Also, did you read this in the nVault Utility & Array pages? Make sure you use this module.
Forum: Suggestions / Requests 06-04-2019, 20:31
Replies: 11
Views: 937
Posted By Bugsy
Re: Admins Playtime

Not thoroughly tested.

The plugin will not display the admins current time if they are actively connected. The data displayed with the /at command is saved on disconnect.

You will need nVault...
Forum: Suggestions / Requests 06-02-2019, 09:28
Replies: 169
Views: 10,915
Posted By Bugsy
Re: Ban players if disconnect

1. Download nvault utility
2. Download nvault array
Forum: Suggestions / Requests 06-02-2019, 08:57
Replies: 169
Views: 10,915
Posted By Bugsy
Re: Ban players if disconnect

You may be using an old copy of nvault utility. I ended up moving the nvault array functionality out of utility into its own include.
Forum: Suggestions / Requests 06-01-2019, 21:41
Replies: 11
Views: 937
Posted By Bugsy
Re: Admins Playtime

You want this to only record admins play time, and when any player says /at, it shows each admin name and their number of connections and total play time?
Forum: Suggestions / Requests 06-01-2019, 20:08
Replies: 169
Views: 10,915
Posted By Bugsy
Re: Ban players if disconnect

Untested


#include <amxmodx>
#include <engine>
#include <nvault_util>
#include <nvault_array>

new const Version[] = "1.3";
Forum: Suggestions / Requests 06-01-2019, 17:22
Replies: 169
Views: 10,915
Posted By Bugsy
Re: Ban players if disconnect

Only the bolded items, or everything in your quote?
Forum: Code Snippets/Tutorials 05-31-2019, 22:21
Replies: 18
Views: 2,822
Posted By Bugsy
Re: Artificial intelligence (neural networks)

Agree, this is basically useless to the AMX-X community, IMO. And I don't mean this in a bad/negative way, but nobody is going to know how to apply this to a game-play plugin. You should create a...
Forum: Scripting Help 05-28-2019, 20:57
Replies: 13
Views: 978
Posted By Bugsy
Re: Creating new .ini file

Exactly, this is why I mentioned (3 times) that you cannot use a text editor which is a no-go for some. You could create commands in your plugin to edit the settings, which is easier than opening...
Forum: Scripting Help 05-28-2019, 19:26
Replies: 13
Views: 978
Posted By Bugsy
Re: Creating new .ini file

You can store anything, it works the same way as an ini file, using a key/value format. The only thing you are missing is the sections of settings, which you can handle by naming your keys...
Forum: Scripting Help 05-28-2019, 07:51
Replies: 13
Views: 978
Posted By Bugsy
Re: Creating new .ini file

I didnt say it was only for player data. I said it can be used for anything, including plugin settings or player data.
Showing results 1 to 25 of 500

 
Forum Jump

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


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