Raised This Month: $54 Target: $400
 13% 

Showing results 1 to 25 of 330
Search took 0.01 seconds.
Search: Posts Made By: kww
Forum: Scripting Help Today, 12:43
Replies: 6
Views: 193
Posted By kww
Re: mouse movement

Who is character[id]?
Forum: Scripting Help Yesterday, 08:36
Replies: 16
Views: 371
Posted By kww
Re: SVC_STOPSOUND message

what is pev_message?
Forum: Scripting Help 11-28-2022, 16:05
Replies: 16
Views: 371
Posted By kww
Re: SVC_STOPSOUND message

you can either remove all ambient_generic entities on map start...
Forum: Scripting Help 11-27-2022, 05:22
Replies: 22
Views: 847
Posted By kww
Re: I need a library to encode as JSON and HTTP POST, GET

I expected to see just "yes" or "no".


I just wrote 1 word: "replace". And you started correcting me...
Sorry.
Forum: Scripting Help 11-26-2022, 08:26
Replies: 22
Views: 847
Posted By kww
Re: I need a library to encode as JSON and HTTP POST, GET

Are you too angry to answer stupid questions? Thank you



Why are you picking on words? I think they have to use their head and look at docs
Forum: Scripting Help 11-24-2022, 14:21
Replies: 4
Views: 152
Posted By kww
Forum: Scripting Help 11-23-2022, 22:47
Replies: 22
Views: 847
Posted By kww
Re: I need a library to encode as JSON and HTTP POST, GET

You can replace it with native formatex(); if you need.

Was fmt(); introduces in 1.9?
Forum: Scripting Help 11-23-2022, 11:13
Replies: 16
Views: 371
Posted By kww
Re: SVC_STOPSOUND message

It immediately stops every sound player hear
Forum: New Plugin Submissions 11-23-2022, 09:58
Replies: 1
Views: 277
Posted By kww
Re: RETAKE BOMBSITE ~ By: GoldNux

From my coding noob's perspective, I see you can optimize it very well xD
Poor example:
Check first if you have to place smoke and only if you have, create an entity.

new iEntity =...
Forum: Scripting Help 11-23-2022, 09:52
Replies: 3
Views: 175
Posted By kww
Re: Spawning a smoke cloud in the map

Sure.

Upd: example below should work in theory but is not working for me xd


Entity index is the index of that info_target
E.g.:

public plugin_precache()
{
Forum: Scripting Help 11-22-2022, 09:58
Replies: 3
Views: 175
Posted By kww
Re: Spawning a smoke cloud in the map

upd2: I just copied what you posted, sorry

I'm a lamer in theme of entities but info_target is what you need: it is invisible and is not solid

upd: this seems to work

// summon smoke at...
Forum: Scripting Help 11-22-2022, 09:46
Replies: 5
Views: 166
Posted By kww
Re: Does the AMXX compiler inline variables at compile time?

I think this makes sence only if used very often, e.g. inside client_...think or some Ham_* hooks



This is the reply I waited for. I also tried to use amxxdump and I think it says you're right....
Forum: Scripting Help 11-22-2022, 09:10
Replies: 2
Views: 125
Posted By kww
Re: show last 10 line

Something like this?

if(lTotal){
for(new i = lTotal; i => lTotal - 10; i--){
ArrayGetString(gNames,i,lSearchForName,charsmax(lSearchForName));
...
Forum: Scripting Help 11-21-2022, 22:10
Replies: 5
Views: 166
Posted By kww
Re: Does the AMXX compiler inline variables at compile time?

The question was: is it skips variable creation if it can use that value directly?



ok
Forum: Scripting Help 11-21-2022, 10:46
Replies: 2
Views: 101
Posted By kww
Remove last character from string

First thing that came in my mind was:

public test(id)
{
//MagicNumbers™
new szBuffer[190], szBuffer2[4], len;

for(new i; i < 10; i++)
{
len += formatex(szBuffer2,...
Forum: Scripting Help 11-21-2022, 08:11
Replies: 5
Views: 166
Posted By kww
Does the AMXX compiler inline variables at compile time?

Possibly stupid question...
Does the compiler inline variables at compile time?
Like:

public Ham_Item_Deploy_Pre(iEnt)
{
new id = pev(iEnt , pev_owner); // it will be referenced only once...
Forum: Scripting Help 11-21-2022, 02:40
Replies: 11
Views: 277
Posted By kww
Re: Get ALL Offsets

I have this:

(and their .so/.dylib analogs)
Forum: Scripting Help 11-21-2022, 02:17
Replies: 11
Views: 277
Posted By kww
Re: Get ALL Offsets

Its name is mp.dll, isn't it?
Forum: Scripting Help 11-20-2022, 22:41
Replies: 2
Views: 119
Posted By kww
Re: Is there any method to hook adding ammo in backpack?

It seems I can't use it for flashbangs but I'm not sure so I'll try

upd: It doesn't fit for me :( I'm working with weapon entity but I can't get its id within this message (probably because I...
Forum: Scripting Help 11-20-2022, 14:24
Replies: 2
Views: 119
Posted By kww
Is there any method to hook adding ammo in backpack?

Is there any method to hook adding ammo in backpack? I've tried to use RegisterHam(Ham_Item_AddToPlayer, "weapon_flashbang", "Ham_Item_AddToPlayer_Post", true); but it works only when player gets...
Forum: Scripting Help 11-15-2022, 11:39
Replies: 2
Views: 156
Posted By kww
Re: no chance for me to understand bits

bruh... That's it? I forgot it's not shifted. Thank you
Forum: Scripting Help 11-15-2022, 10:22
Replies: 2
Views: 156
Posted By kww
no chance for me to understand bits

Hi. Why does this method not work? When I pass any CSW_* constant, it returns me *not* random numbers but they're wrong.
Did I do something wrong?
Testing code:

#include amxmodx
#include...
Forum: Scripting Help 10-13-2022, 12:58
Replies: 7
Views: 383
Posted By kww
Re: fw_TraceAttack_Player, ham_traceattack_post, TraceAttack doesn't work great with

This will work only once... Is g_HamBot needed there?
Forum: Scripting Help 10-09-2022, 12:04
Replies: 13
Views: 628
Posted By kww
Re: Hook player model change

I just do something depending on current player model and every time I do this, I retrieve player model with natives. I thought that I could minimize unnecessary calls by getting model name only when...
Forum: Scripting Help 10-09-2022, 11:27
Replies: 13
Views: 628
Posted By kww
Re: Hook player model change

Default cs models -_-
Showing results 1 to 25 of 330

 
Forum Jump

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


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