Raised This Month: $32 Target: $400
 8% 

Showing results 1 to 25 of 500
Search took 0.01 seconds.
Search: Posts Made By: SpeeDeeR
Forum: Scripting Help 08-25-2016, 18:02
Replies: 2
Views: 1,132
Posted By SpeeDeeR
Re: [Question] SQL_ThreadQuery vs SQL_PrepareQuery

Isn't the difference that SQL_ThreadQuery is basically asynchronous?
Forum: Scripting Help 08-25-2016, 17:52
Replies: 4
Views: 932
Posted By SpeeDeeR
Re: [HELP] Help with contain..

No. if(contain(A, B)) means the answer is either positive or a negative number, i.e. != 0.
-1 means there is NO MATCH. Other than this (higher then -1) means it has a match.
Forum: Scripting Help 08-25-2016, 17:48
Replies: 3
Views: 847
Posted By SpeeDeeR
Re: entity finder and name of bot entity

is_user_bot (https://www.amxmodx.org/api/amxmodx/is_user_bot)?
Forum: Scripting Help 06-29-2016, 15:37
Replies: 6
Views: 1,072
Posted By SpeeDeeR
Re: Help with TravTrie.

You are indeed, wrong.
Forum: Scripting Help 05-27-2016, 04:06
Replies: 1
Views: 733
Posted By SpeeDeeR
Re: Entity killed with CSW_KNIFE -> server crashes

I'm not 100% sure about this, but I will try to help.
You should consider using only one method for the health. Since you are setting the hp on spawn, hook the kill and dont check it in takedamage....
Forum: Scripting Help 05-20-2016, 14:50
Replies: 21
Views: 1,853
Posted By SpeeDeeR
Re: [HELP] Storing Console Cmds in Variable

Sure it does.
Describe what you are trying to do exatcly.
Forum: Scripting Help 05-17-2016, 12:40
Replies: 3
Views: 762
Posted By SpeeDeeR
Re: [HELP] Native mismatch problem

public Float: native_get_user_new_health(id)
or
public native_get_user_new_health(id)
{
return _:new_health[id]
}which wont return float.

and check this...
Forum: Scripting Help 05-15-2016, 15:47
Replies: 12
Views: 1,441
Posted By SpeeDeeR
Re: This plugin crashes my server

Use style=0, and look up how the native callback is defined.
https://forums.alliedmods.net/showthread.php?t=41251
Forum: Scripting Help 05-15-2016, 12:47
Replies: 12
Views: 1,441
Posted By SpeeDeeR
Re: This plugin crashes my server

it's probably Nvault causing the crash.
Your save file maybe corrupted.
Forum: Scripting Help 05-15-2016, 09:31
Replies: 2
Views: 1,007
Posted By SpeeDeeR
Re: Question about TraceHull

TraceHull traces the space around an origin, like EngFunc_FindEntityInSphere does.
EngFunc_FindEntityInSphere returns only entities in the sphere, and tracehull finds things related to the radius. ...
Forum: Scripting Help 04-27-2016, 05:51
Replies: 19
Views: 2,833
Posted By SpeeDeeR
Re: [HELP] MySQL Simple save problem

Doesn't "UPDATE `zmescape` SET `escapes` = '%i' WHERE `escapes`.`name` = '%s' has to be "UPDATE `zmescape` SET `escapes` = '%i' WHERE `zmescape`.`name` = '%s'
You don't need to specify the column's...
Forum: Scripting Help 04-15-2016, 10:18
Replies: 5
Views: 743
Posted By SpeeDeeR
Forum: Scripting Help 04-15-2016, 09:30
Replies: 4
Views: 1,046
Posted By SpeeDeeR
Re: How to hook entity

RegisterHam(Ham_TakeDamage, "func_breakable", "FwdBreakableTakeDamage");

public FwdBreakableTakeDamage(this, attacker, inflictor, Float: damage)
{
new Float: health;
pev(this,pev_health,...
Forum: Scripting Help 04-14-2016, 16:31
Replies: 4
Views: 786
Posted By SpeeDeeR
Re: How to properly use set_string()?

Pass it byref.
Format the message directly in szOutput or use copy() in the end.
Forum: Scripting Help 04-14-2016, 15:38
Replies: 4
Views: 786
Posted By SpeeDeeR
Re: How to properly use set_string()?

set_string is for natives to start with. I'm sure you know that.
As stated above:

public get_message(id,iParams) //native
{
new szMessage[192]

// ... some stuff about formatting szMessage...
Forum: Scripting Help 04-12-2016, 07:43
Replies: 7
Views: 772
Posted By SpeeDeeR
Re: Animation

I'm assuming you know the animation index:
If its a weapon model use pev_weaponanim; if its player model use pev_gaitsequence
Forum: Scripting Help 04-11-2016, 15:43
Replies: 7
Views: 1,067
Posted By SpeeDeeR
Re: Switch CSW_WEAPON

Ham_Weapon_PrimaryAttack is called by the entity, not weaponID as stated above.
Forum: Scripting Help 04-11-2016, 01:20
Replies: 18
Views: 2,399
Posted By SpeeDeeR
Re: detecting knife stab or slash

The problem is that if you press both attacks at the same time, like you both stated, you dont know if its a slash or a stab.
That can be avoided checking the animation - in my previous post #13...
Forum: Scripting Help 04-10-2016, 09:30
Replies: 18
Views: 2,399
Posted By SpeeDeeR
Re: detecting knife stab or slash

It's OK if you are pressing only IN_ATTACK, but when you press and IN_ATTACK2 the bitsum changes to (IN_ATTACK | IN_ATTACK2) since it's exactly the case. While slashing press IN_ATTACK2, it keeps...
Forum: Scripting Help 04-10-2016, 08:02
Replies: 18
Views: 2,399
Posted By SpeeDeeR
Re: detecting knife stab or slash

So you would like to modify knife damage, is that correct?
Forum: Scripting Help 04-10-2016, 07:37
Replies: 18
Views: 2,399
Posted By SpeeDeeR
Re: detecting knife stab or slash

What are you trying to achieve?
Forum: Scripting Help 03-27-2016, 13:28
Replies: 15
Views: 1,161
Posted By SpeeDeeR
Re: Question about entities

If it's an interger, store it in iuser.
Forum: Scripting Help 03-24-2016, 11:26
Replies: 9
Views: 975
Posted By SpeeDeeR
Re: [Move if its not for here] Compiler question

The parser is complaining that your line (57) is too long. Find a way to shorten whatever expression you've got.
If its a string, format it in two or more passes. If its a formula, break it in two...
Forum: Scripting Help 03-23-2016, 12:28
Replies: 6
Views: 835
Posted By SpeeDeeR
Re: Reverse velocity of player

Nonsence. You are using the coordinates of two points when calculating the velocity vector. View angles are not considered at all.
Forum: Scripting Help 03-20-2016, 10:14
Replies: 6
Views: 835
Posted By SpeeDeeR
Re: Reverse velocity of player

You need to calculate the reversed vector between a point(the pusher?) and player's origin, and you've got yourself the push velocity.
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 22:13.


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