Raised This Month: $12 Target: $400
 3% 

Showing results 1 to 25 of 487
Search took 0.01 seconds.
Search: Posts Made By: dFF
Forum: Scripting Help 09-26-2015, 11:31
Replies: 2
Views: 627
Posted By dFF
Re: cs crash - overflow

Try to use MSG_BROADCAST inseid of MSG_ALL
or look here https://forums.alliedmods.net/showthread.php?t=158512
Forum: Scripting Help 11-14-2013, 12:24
Replies: 8
Views: 1,652
Posted By dFF
Re: Strings and macros

https://forums.alliedmods.net/showthread.php?t=188591
http://forums.alliedmods.net/showthread.php?t=158711
:wink:
Forum: HL1 Servers (HLDS) 08-20-2013, 10:43
Replies: 29
Views: 8,946
Posted By dFF
Re: HLDS 6132 svc_bad

This thread is not about Metamod-AM and Metamod-p. Metamod-AM or Metamod-p does not create svc_bad error.

svc_bad caused by badly plugins coded.

If i remember correctly cs_set_user_model can...
Forum: Scripting Help 08-19-2013, 12:51
Replies: 16
Views: 3,191
Posted By dFF
Re: pev_frags crashing after update, either my code is bad

I can't finde where ist fixed get_players in amxx shortlog list (http://hg.alliedmods.net/amxmodx-central/shortlog/cd6d6d802ef2).
Forum: Scripting Help 08-19-2013, 11:46
Replies: 16
Views: 3,191
Posted By dFF
Re: pev_frags crashing after update, either my code is bad

@r0ck (https://forums.alliedmods.net/member.php?u=144539), you was used get_players in zombie mod ? Explain better (with some code example if you can) what is the problem exactly.
Maybe sometimes...
Forum: Scripting Help 08-19-2013, 09:18
Replies: 1
Views: 960
Posted By dFF
SQL_FieldNameToNum cached value

For example i have:
public MySqlFunction( FailState, Handle:Query, Error[ ], Errcode, Data[ ], DataSize )
{
switch( FailState )
{
case TQUERY_CONNECT_FAILED:
{
...
Forum: HL1 Servers (HLDS) 08-17-2013, 14:08
Replies: 29
Views: 8,946
Posted By dFF
Re: HLDS 6132 svc_bad

Post output of: amxx plugins

svc_bad - is most caused by 3rd plugins.

My suggestion is to review your pluins.

Also, what about to use metamod-1.21-am...
Forum: General 08-03-2013, 13:33
Replies: 1
Views: 944
Posted By dFF
Check for private datas

I don't want to create a stupid bug report on bugzilla, so i posted here.

After i read this thread:
http://forums.alliedmods.net/showthread.php?t=149797

it's not better to implement these in...
Forum: Scripting Help 08-03-2013, 09:21
Replies: 2
Views: 587
Posted By dFF
Re: stop specific sounds?

I think you can do only with emit_sound. Some like:

start:
emit_sound( id, CHAN_AUTO, "misc/sound.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM )

stop:
emit_sound( id, CHAN_AUTO, "misc/sound.wav",...
Forum: Scripting Help 07-26-2013, 15:20
Replies: 4
Views: 1,059
Posted By dFF
Re: Cache values for custom ents

Okey, thanks. :mrgreen: :bee:
Forum: Scripting Help 07-26-2013, 15:04
Replies: 4
Views: 1,059
Posted By dFF
Re: Cache values for custom ents

For example: pev_origin
my entityes thinks at very 0.1 second and in EntsThink( iEnt ) it's useless to call everytime at 0.1 pev( iEnt, pev_origin, fOrigin ) so i thinks it's was better to cache...
Forum: Scripting Help 07-26-2013, 14:40
Replies: 4
Views: 1,059
Posted By dFF
Cache values for custom ents

const MAX_PLAYERS = 32
#define MAX_ENTS ( 900 + MAX_PLAYERS * 15 )
#define ENTS_ARRAY_SIZE ( MAX_ENTS / 32 ) + _:!!( MAX_ENTS % 32 )

new Float:g_fVelocity[ ENTS_ARRAY_SIZE ][ 3 ]

public...
Forum: Scripting Help 07-26-2013, 13:02
Replies: 13
Views: 2,390
Posted By dFF
Re: Jump

Set gravity 0.1 =>
http://brojsimpson.com/wordpress/wp-content/uploads/2011/05/wtf-pics-jump-on-bed.jpg
Forum: Scripting Help 07-24-2013, 11:57
Replies: 2
Views: 1,203
Posted By dFF
Re: more optimization or improves?

I think this is better: http://forums.alliedmods.net/showthread.php?t=131219 (never tried)

in you're case .. cache is_user_alive, is_user_bot, cvars, because is called to often in postThink....
Forum: Scripting Help 07-24-2013, 11:52
Replies: 1
Views: 627
Posted By dFF
get_players: paramas clarification

Here is get_players source from amxx:

static cell AMX_NATIVE_CALL get_players(AMX *amx, cell *params) /* 4 param */
{
int iNum = 0;
int ilen;
char* sptemp = get_amxstring(amx,...
Forum: Scripting Help 07-19-2013, 13:54
Replies: 6
Views: 1,526
Posted By dFF
Re: Float number calculations

Thank you again Connor :wink:.
Forum: Scripting Help 07-18-2013, 15:45
Replies: 6
Views: 1,526
Posted By dFF
Re: Float number calculations

Yeah .. the printed is same, floats are strange in amxx, and i need to use floats.
Forum: Scripting Help 07-18-2013, 15:39
Replies: 6
Views: 1,526
Posted By dFF
Float number calculations

For example i have:

static Float:fStart, Float:fAdd

fStart = getDayValue( 1 )
fAdd = fStart + 0.1

client_print( id, print_chat, "fStart: %f", fStart )
client_print( id, print_chat,...
Forum: Scripting Help 07-14-2013, 10:32
Replies: 4
Views: 751
Posted By dFF
Re: About destroying Array

Thank you ! :mrgreen:
Forum: Scripting Help 07-14-2013, 10:30
Replies: 4
Views: 835
Posted By dFF
Re: Error on plugin

public Ham_PlayerSpawn_Post( id )
{
if( is_user_alive( id ) )
{
switch( cs_get_user_team( id ) )
{
case CS_TEAM_T:
{
...
Forum: Scripting Help 07-14-2013, 08:51
Replies: 4
Views: 751
Posted By dFF
Re: About destroying Array

Hmm .. for curiosity where can i found these ? in amxx source ?

Anyway thanks for reply, now it's ok.
Thanks.
Forum: Scripting Help 07-14-2013, 08:46
Replies: 4
Views: 751
Posted By dFF
About destroying Array

For example i create an array like: g_aArray = ArrayCreate( 32, 1 )
it is necessary to destroy g_aArray in plugin_end to prevent memory leak, or the server is already destroy array like in Trie case...
Forum: Scripting Help 07-08-2013, 07:51
Replies: 6
Views: 1,141
Posted By dFF
Re: Camera effect

Tried and not work.
Forum: Scripting Help 07-07-2013, 16:21
Replies: 6
Views: 1,141
Posted By dFF
Re: Camera effect

I tried to set:

pev_button - IN_DUCK
pev_flags - FL_DUCKING [set/remove]
m_afButtonPressed - IN_DUCK

and fail .. not work.

Another way i think is to create a custom entity and attach...
Forum: Scripting Help 07-07-2013, 14:34
Replies: 12
Views: 2,571
Posted By dFF
Re: Code doesn't work

I'm talking in general about pev() and entity_get_* (or pev() vs entity_get_*).

Thanks for reply :wink:.
Showing results 1 to 25 of 487

 
Forum Jump

All times are GMT -4. The time now is 04:32.


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