Raised This Month: $238 Target: $400
 59% 

Showing results 1 to 25 of 500
Search took 0.08 seconds.
Search: Posts Made By: Bugsy
Forum: Off-Topic Today, 13:38
Replies: 65
Views: 45,610
Posted By Bugsy
Re: CSStats Editor v0.3.0

I *think* the problem is the server has the csstats.dat file data loaded in memory so any subsequent changes made while the server is running get over-written on mapchange by the csstats data in the...
Forum: Suggestions / Requests Yesterday, 16:45
Replies: 13
Views: 243
Posted By Bugsy
Re: how to make random in enum

I agree HamletEagle, I think your response was fine and to the point.

Many scripting/programming help posts on this forum can be picked apart to some technical degree by someone who cares to do...
Forum: Suggestions / Requests Yesterday, 13:54
Replies: 10
Views: 158
Posted By Bugsy
Re: check lan or public ip

What he means, arvEL., is LAN IP's will typically begin with a constant set of values such as '192.168.1.' with the last value being unique to a device on the LAN: 192.168.1.21. So you can basically...
Forum: Scripting Help 02-20-2018, 23:06
Replies: 7
Views: 82
Posted By Bugsy
Re: Only admin_level_A this (teleport smoke)

You do realize you are checking the following, right?

if ( user is dead OR user has no clip OR pev_solid/SOLID_NOT OR player has ADMIN_LEVEL_H )
Forum: Suggestions / Requests 02-19-2018, 18:22
Replies: 13
Views: 246
Posted By Bugsy
Re: [REQ/HELP]How To Make Top 15

soumyadip77, the plugin you posted above is for online players only. You would need to add the player name to the vault entry and then use nvault utility to read all records followed by a sort. Using...
Forum: Scripting Help 02-18-2018, 17:08
Replies: 42
Views: 578
Posted By Bugsy
Re: New message started when msg '66' has not been sent yet

DoPe, please do not post the same topic twice. The thread in Suggestions/Requests has been deleted.
Forum: Scripting Help 02-14-2018, 21:58
Replies: 8
Views: 160
Posted By Bugsy
Re: Detect if player is in the water

As KliPPy said, what is 'in the water'. If you mean standing knee-deep in water then pev_waterlevel returns 1, deeper = 2, fully in water is 3. If all you care about is in water at any level, a...
Forum: Scripting Help 02-14-2018, 07:07
Replies: 8
Views: 160
Posted By Bugsy
Re: Detect if player is in the water

Try the below using CONTENTS_WATER. I forget if it works 100% for water but I've used it for in-wall and outside of map checking.

new Float:fOrigin[ 3 ];
pev( iEntity , pev_origin , fOrigin );...
Forum: Scripting Help 02-13-2018, 21:06
Replies: 3
Views: 122
Posted By Bugsy
Re: how open menu in the start of round

Hook spawn and display within that, or if you prefer a delay use set_task() with x interval at spawn.
Forum: Scripting Help 02-13-2018, 08:47
Replies: 2
Views: 51
Posted By Bugsy
Re: How check user have specific admin flag

Below is for checking a single flag in character format. If you use the ADMIN_FLAG_X variant you do not need read_flags().

if ( get_user_flags( id ) & read_flags( "t" ) )
Forum: Scripting Help 02-10-2018, 16:34
Replies: 18
Views: 319
Posted By Bugsy
Re: Optimizing a repeatable task

Agree, I would start high at 1.0 seconds and if the delay is noticeable in game, gradually reduce by 0.1 until it looks acceptable. I would not default to always using 0.1.
Forum: Suggestions / Requests 02-10-2018, 14:18
Replies: 2
Views: 117
Posted By Bugsy
Re: Connect/Disconnect message

geoip_country() is now depreciated, you should use geoip_country_ex() for 1.8.3. You can use the below for cross-version compatibility. You were also missing the len parameter for the country[]...
Forum: Scripting Help 02-10-2018, 00:04
Replies: 3
Views: 92
Posted By Bugsy
Re: Models by flags with hierarchy help

Untested and make sure to update the model file path/filenames.


#include < amxmodx >
#include < cstrike >
#include < hamsandwich >

#define MAX_PLAYERS 32

//Different admin levels
Forum: Suggestions / Requests 02-09-2018, 19:01
Replies: 4
Views: 169
Posted By Bugsy
Re: Good Programmer needed

Give more details. Project size/type/language
Forum: Suggestions / Requests 02-09-2018, 18:39
Replies: 1
HNS
Views: 49
Posted By Bugsy
Re: HNS

Please post a valid question.
Forum: Scripting Help 02-09-2018, 12:27
Replies: 18
Views: 319
Posted By Bugsy
Re: Optimizing a repeatable task

Yeah, I always use thinking entities personally, but like I said I think the heavy lift with set_task() is the initial creation. Going forward from a looping perspective, performance differences...
Forum: Scripting Help 02-08-2018, 18:36
Replies: 5
Views: 127
Posted By Bugsy
Re: Create 'weaponbox' on given origin

I think using armoury_entity's can simulate dropped weapons pretty easily, the only drawback is only the below would be supported (no pistols):


CSW_MP5NAVY
CSW_TMP
CSW_P90
CSW_MAC10
...
Forum: Scripting Help 02-08-2018, 12:21
Replies: 18
Views: 319
Posted By Bugsy
Re: Optimizing a repeatable task

It's debatable whether static should be used in this case since the variables are small. Had you used a large array, then static should definitely be used.
Forum: Scripting Help 02-07-2018, 19:57
Replies: 18
Views: 319
Posted By Bugsy
Re: Optimizing a repeatable task

I don't see an issue with using set_task() either. From what I've been told, it is the creation of a task that is expensive, not one that repeats itself. I don't know if I agree with the 1 second...
Forum: Suggestions / Requests 02-05-2018, 22:10
Replies: 13
Views: 241
Posted By Bugsy
Re: [REQ/HELP]nVault Play Time Plugin

#include <amxmodx>
#include <nvault>

new g_NvID;

public plugin_init()
{
register_plugin("Play time", "1.0", "bugsy");
register_clcmd("say /ptime","cmd_DisplayTime", ADMIN_ALL , "- Display...
Forum: Scripting Help 02-05-2018, 20:06
Replies: 8
Views: 176
Posted By Bugsy
Re: if (get_user_flags(id) & ADMIN_USER) { CANT FIX!

Code looks fine to me, are you sure there isn't a second version running in the background with ADMIN_USER?
Forum: Suggestions / Requests 02-04-2018, 12:56
Replies: 64
Views: 3,849
Posted By Bugsy
Re: [REQ] Play Time

Flags are now configured here in plugin_init(). Untested


g_AdminFlags = read_flags( "bcdefghijkmnopqrstu" );
Forum: Suggestions / Requests 02-04-2018, 11:26
Replies: 13
Views: 241
Posted By Bugsy
Re: [REQ/HELP]nVault Play Time Plugin

FormatTime( iSeconds , szBuffer[] , iSize )
{
new iPos;

new iDays = iSeconds / 86400;
iSeconds -= iDays * 86400;

new iHours = iSeconds / 3600;
iSeconds -= iHours...
Forum: Suggestions / Requests 02-03-2018, 14:26
Replies: 64
Views: 3,849
Posted By Bugsy
Re: [REQ] Play Time

This (https://forums.alliedmods.net/showpost.php?p=2570526&postcount=39) is fixed. At new round I was not adding their current connection play time to the play time value that was retrieved from the...
Forum: Suggestions / Requests 02-03-2018, 13:20
Replies: 13
Views: 241
Posted By Bugsy
Re: [REQ/HELP]nVault Play Time Plugin

Top 15 will take some extra work. I recommend SQL if any type of querying/ordering is needed.

https://forums.alliedmods.net/showpost.php?p=2553214&postcount=2
...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 23:52.


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