Monthly Target: $400 Donations: $277
 69% 

Showing results 1 to 25 of 500
Search took 0.06 seconds.
Search: Posts Made By: Bugsy
Forum: Scripting Help 04-24-2015, 19:24
Replies: 7
Views: 110
Posted By Bugsy
Re: String parameters

This part is wrong -> charsmax( g_szString[id] ), should be charsmax( g_szString[] ). Also, use formatex() over format() when possible.
new g_szString[ 33 ][ 55];
formatex( g_szString[ id ] ,...
Forum: Scripting Help 04-23-2015, 20:28
Replies: 4
Views: 112
Posted By Bugsy
Re: ~get_user_flags(id) & read_flags(flag) dosn't work

Use has_all_flags() (http://www.amxmodx.org/api/amxmisc/has_all_flags)

In your case, you would use !has_all_flags( id , "sv" )
Forum: Scripting 04-17-2015, 09:16
Replies: 7
Views: 188
Posted By Bugsy
Re: String problem

Moved to SM section.
Forum: Scripting 04-15-2015, 22:30
Replies: 6
Views: 197
Posted By Bugsy
Forum: Plugin/Gameplay Ideas and Requests 04-15-2015, 22:25
Replies: 5
Views: 287
Posted By Bugsy
Re: CSGO Plugins Needed!

Moved to SM section.
Forum: Scripting Help 04-15-2015, 22:23
Replies: 4
Views: 151
Posted By Bugsy
Re: [Help] Register-System [Nvault]

What he said. The users SteamID is their password, which they don't even have to type. Once they join, your server knows who they are.
Forum: Scripting Help 04-15-2015, 16:38
Replies: 4
Views: 151
Posted By Bugsy
Re: [Help] Register-System [Nvault]

What exactly do you need help with? If this isn't a scripting question then it should be in Suggestions|Requests.

This definitely already exists, probably in multiple flavors. So if you want to...
Forum: Scripting Help 04-13-2015, 19:55
Replies: 6
Views: 205
Posted By Bugsy
Re: [Req]CSX NATIVES

I wrote this a while back but unfortunately all changes to csstats are lost at map-change/shutdown. This needs to be coded into the csx module.
...
Forum: Scripting Help 04-11-2015, 17:59
Replies: 7
Views: 125
Posted By Bugsy
Re: DeathMsg - TruncatedWeaponName Param

Why don't you just try custom names to see if it works?
Forum: Scripting Help 04-10-2015, 19:12
Replies: 4
Views: 174
Posted By Bugsy
Re: Reading and using values

Edit: Added delete command to delete origins from the file. Also now uses configs/map_coords folder. There is a separate coord file used for each map. Added random command to teleport player to...
Forum: Scripting Help 04-06-2015, 22:32
Replies: 2
Views: 163
Posted By Bugsy
Re: SQL_NumResults() returns 0

When I write queries I do not wrap anything but strings in quotes. The below (to me) is comparing a numerical value against a string of numbers, not a numerical value. I'm not sure if the SQL...
Forum: Code Snippets/Tutorials 04-04-2015, 12:23
Replies: 57
Sticky: nVault Tutorial
Views: 27,179
Posted By Bugsy
Re: nVault Tutorial

Increase the below to accommodate your max.
const MAX_ENTRIES = 10;

Then modify this line to show what you want:
server_print("%d. %-20.20s %d", (i + 1), data[VD_Key], data[VD_Value]);
Forum: Scripting Help 04-02-2015, 19:24
Replies: 6
Views: 152
Posted By Bugsy
Re: define question

They are useful for not having to re-write things over and over again. You still need to call the macro, but you can avoid repeating parts of it that are constant.
//ie. instead of ...
Forum: Scripting Help 03-25-2015, 18:03
Replies: 3
Views: 113
Posted By Bugsy
Re: get_user_frags() always returns 33

What is returning 33, get_user_frags() or GetRemainingFrags( KillerFrags )? You should put a condition in to not fire if killer is world (id=0) ; "1>0".
Forum: Scripting Help 03-22-2015, 09:30
Replies: 6
Views: 156
Posted By Bugsy
Re: best way to detect how many player are shooting

Trying to detect at the same exact time you may not get good results. How about within the same 1-2 seconds?
Forum: Suggestions / Requests 03-22-2015, 08:52
Replies: 10
Views: 282
Posted By Bugsy
Re: AutoKick players without making one kill

I have a hard time understanding your requirements. The below plugin will kick the player if he gets 5 consecutive deaths without getting 1 kill. If he gets a kill, his death count resets to 0 so the...
Forum: Scripting Help 03-22-2015, 07:51
Replies: 9
Views: 176
Posted By Bugsy
Re: Automatize array content

The macro will return your desired value, no need for an array.

val = szXP( 5 )
Forum: Scripting Help 03-21-2015, 13:37
Replies: 12
Views: 273
Posted By Bugsy
Re: Give zoom with ham

It's possible but it takes a little work: https://forums.alliedmods.net/showthread.php?t=175578
Forum: Scripting Help 03-21-2015, 12:56
Replies: 3
Views: 108
Posted By Bugsy
Re: Check for dead Player

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

new const Version[] = "0.1";

#define CheckIfRevived(%1) (WasRevived & (1 << (%1 & 31)))
new WasRevived;

public plugin_init()
Forum: Code Snippets/Tutorials 03-21-2015, 00:04
Replies: 29
Views: 1,244
Posted By Bugsy
Re: Orpheu Signatures Collection

SV_DropClient


{
"name" : "SV_DropClient",
"library" : "engine",
"arguments" :
[
{
"type" : "int"
Forum: Scripting Help 03-20-2015, 23:43
Replies: 14
Views: 370
Posted By Bugsy
Re: Knife hitplace don't get registered except headshot.

I tested the code I posted above and knife hits register on every body part, including generic.

You can detect hits made when the attacker is out of the victims line of sight, which is equivalent...
Forum: Scripting Help 03-20-2015, 15:27
Replies: 6
Views: 162
Posted By Bugsy
Re: [SQLITE] Error

If you want to post or pm your full plugin I can take a look.
Forum: Scripting Help 03-20-2015, 12:57
Replies: 6
Views: 162
Posted By Bugsy
Re: [SQLITE] Error

I would make sure your queries are correct. Do you have debug enabled in plugins.ini?
Forum: Scripting Help 03-20-2015, 07:12
Replies: 14
Views: 370
Posted By Bugsy
Re: Knife hitplace don't get registered except headshot.

If OPs checking is correct, I find it odd that it would only show hit place as head. You can get a headshot kill by knife right? So it definitely differentiates this somewhere, unless it just checks...
Forum: Scripting Help 03-19-2015, 21:08
Replies: 10
Views: 170
Posted By Bugsy
Re: multi-dimensional arrays && structuring arrays

Based on compiler output, it doesn't like that you size dimension 2 at 128 but are not completely filling/utilizing it. Change 128 to 12 and it'll probably take it. But I don't think your layout will...
Showing results 1 to 25 of 500

 
Forum Jump

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


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