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

Showing results 1 to 25 of 333
Search took 0.01 seconds.
Search: Posts Made By: kww
Forum: Scripting Help 12-05-2022, 08:14
Replies: 6
Views: 694
Posted By kww
Re: How to achieve cumulative effect on death pool?

This was a good experience on making thinking entities for me
Forum: Scripting Help 12-03-2022, 05:12
Replies: 6
Views: 694
Posted By kww
Re: How to achieve cumulative effect on death pool?

very poor implementation for just hooking grenade multikill


#include <amxmodx>
#include <engine>
#include <fakemeta>
#include hamsandwich
#include amxmisc

new g_iEntity;
Forum: Scripting Help 12-02-2022, 13:15
Replies: 11
Views: 2,297
Posted By kww
Re: CS 1.6 CS:GO MOD ( 1024 Skin , Classes , Addons ) Full Mod

We can set pev_skin for viewmodels? Also, I wrote "up to" because I've never tested it so I don't know real limits. It's obvious that the real limits are way more stricter
Tbh I just wrote 255...
Forum: Scripting Help 12-01-2022, 08:07
Replies: 11
Views: 2,297
Posted By kww
Re: CS 1.6 CS:GO MOD ( 1024 Skin , Classes , Addons ) Full Mod

Um... You can have up to 255 submodels in 1 model. In theory, you can have 255 * 29 = 7395 skins (including grenades and a even a c4 explosive :twisted:)
Forum: Scripting Help 11-30-2022, 11:43
Replies: 6
Views: 774
Posted By kww
Re: mouse movement

Who is character[id]?
Forum: Scripting Help 11-29-2022, 07:36
Replies: 16
Views: 1,207
Posted By kww
Re: SVC_STOPSOUND message

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

you can either remove all ambient_generic entities on map start...
Forum: Scripting Help 11-27-2022, 04:22
Replies: 22
Views: 2,756
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, 07:26
Replies: 22
Views: 2,756
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, 13:21
Replies: 11
Views: 2,297
Posted By kww
Forum: Scripting Help 11-23-2022, 21:47
Replies: 22
Views: 2,756
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, 10:13
Replies: 16
Views: 1,207
Posted By kww
Re: SVC_STOPSOUND message

It immediately stops every sound player hear
Forum: Scripting Help 11-23-2022, 08:52
Replies: 3
Views: 547
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, 08:58
Replies: 3
Views: 547
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, 08:46
Replies: 5
Views: 553
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, 08:10
Replies: 4
Views: 662
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, 21:10
Replies: 5
Views: 553
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, 09:46
Replies: 2
Views: 449
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, 07:11
Replies: 5
Views: 553
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, 01:40
Replies: 11
Views: 1,031
Posted By kww
Re: Get ALL Offsets

I have this:

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

Its name is mp.dll, isn't it?
Forum: Scripting Help 11-20-2022, 21:41
Replies: 2
Views: 417
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, 13:24
Replies: 2
Views: 417
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, 10:39
Replies: 2
Views: 535
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, 09:22
Replies: 2
Views: 535
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...
Showing results 1 to 25 of 333

 
Forum Jump

All times are GMT -4. The time now is 19:20.


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