Monthly Target: $400 Donations: $602
 150% 

Showing results 1 to 25 of 500
Search took 0.07 seconds.
Search: Posts Made By: Bugsy
Forum: Scripting Help 03-25-2015, 18:03
Replies: 3
Views: 101
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: 149
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: 262
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: 170
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: 258
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: 98
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: 20
Views: 647
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: 346
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: 150
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: 150
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: 346
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: 161
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...
Forum: Scripting Help 03-19-2015, 21:02
Replies: 14
Views: 346
Posted By Bugsy
Forum: Scripting Help 03-19-2015, 20:48
Replies: 10
Views: 161
Posted By Bugsy
Re: multi-dimensional arrays && structuring arrays

Pawn is a pretty basic language, I'm not sure if what you want is doable. Possibly with macros/hacks.
Forum: Scripting Help 03-19-2015, 20:46
Replies: 14
Views: 346
Posted By Bugsy
Re: Knife hitplace don't get registered except headshot.

Yes, that was just a typo/misplacement of closing parentheses.

0 should print to everyone.

Yes, you can test with bots.
Forum: Scripting Help 03-19-2015, 20:18
Replies: 10
Views: 161
Posted By Bugsy
Re: multi-dimensional arrays && structuring arrays

I showed you how this can be done. Just follow the same format.


Yes, I know.
Forum: Scripting Help 03-19-2015, 19:54
Replies: 10
Views: 161
Posted By Bugsy
Re: multi-dimensional arrays && structuring arrays

enum myStruct
{
_myClass[ 7 ],
_myString1[ 5 ],
_myString2[ 5 ],
_myString3[ 5 ]
};

new const myArrays[ 3 ][ myStruct ] =
{
Forum: Scripting Help 03-19-2015, 19:07
Replies: 14
Views: 346
Posted By Bugsy
Re: Knife hitplace don't get registered except headshot.

Have you tried debugging this at all to make sure it's not related to your socket communication?

Fixed :stupid:

Try something like this to see if the damage is really not registering:
...
Forum: Scripting Help 03-18-2015, 18:23
Replies: 6
Views: 150
Posted By Bugsy
Re: [SQLITE] Error

Post client_disconnect()
Forum: Scripting Help 03-18-2015, 12:41
Replies: 20
Views: 471
Posted By Bugsy
Re: Detect Player Movement

I would hook round start and loop all players using one task. The creation of tasks is an expensive operation so definitely one is better than 1-32.

No flag if you only want to check once per...
Forum: Off-Topic / General Chat 03-17-2015, 21:44
Replies: 7
Views: 211
Posted By Bugsy
Re: Reading binary file

What are you trying to do?
Forum: Scripting Help 03-15-2015, 10:54
Replies: 8
Views: 140
Posted By Bugsy
Re: error 028: invalid subscript (not an array or too many subscripts)

I'm using an older compiler (per the version in output) and also no issue:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

Header size: ...
Forum: Scripting Help 03-14-2015, 20:24
Replies: 3
Views: 118
Posted By Bugsy
Re: How to make objectives for a player

This has been covered many times. Search for DeathMsg.
Forum: Scripting Help 03-14-2015, 20:17
Replies: 15
Views: 308
Posted By Bugsy
Re: Getting user custom flags

read_user_flags( const szAuthID[] , szFlags[]="" , MaxFlagChars=0 , szPassword[]="", MaxPwChars=0 , szConnectionFlags[]="" , MaxConnectionFlagChars=0 )

The only required parameter is szAuthID[]....
Forum: Scripting Help 03-14-2015, 17:58
Replies: 15
Views: 308
Posted By Bugsy
Re: Getting user custom flags

Yes, what is the format?

"STEAM_0:0:12345" "abcdefghijklmnopqrstu" ?
Showing results 1 to 25 of 500

 
Forum Jump

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


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