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

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: CrazY.
Forum: Scripting Help 06-18-2021, 09:07
Replies: 7
Views: 207
Posted By CrazY.
Re: Array VS Multiple Array

You could also do something similar to engine entity_get_* and fakemeta pev, it does not really matter, choose what you are comfortable with.


enum
{
zombie_health,
zombie_name,...
Forum: Scripting Help 06-16-2021, 16:37
Replies: 2
Views: 76
Posted By CrazY.
Re: Restrict use function

You should hook Ham_Use for every usable entity and return HAM_SUPERCEDE.
Forum: Scripting Help 06-16-2021, 16:30
Replies: 4
Views: 134
Posted By CrazY.
Re: add text

Use old style menu.

#include <amxmodx>

#if !defined MAX_MENU_LENGTH
const MAX_MENU_LENGTH = 512
#endif

/*
* @note Keys is a bitflag value that represents which keys the user can press
Forum: Scripting Help 06-16-2021, 16:08
Replies: 9
Views: 201
Posted By CrazY.
Re: get_pdata_int Problem

public fw_CmdStart(id)
{
static Ent; Ent = fm_get_user_weapon_entity(id, CSW_BASE)

if (pev_valid(Ent) != 2)
return

static iClip; iClip = get_pdata_int(Ent, 51, 4)
new ammo, clip,...
Forum: Scripting Help 06-09-2021, 12:30
Replies: 10
Views: 399
Posted By CrazY.
Re: Prevent Crashing

You'll need to hook DefaultDeploy.
https://github.com/s1lentq/ReGameDLL_CS/blob/8d1f4fb673012fbfa912f4f22ec726684cfa7908/regamedll/dlls/weapons.cpp#L1337
Forum: Scripting Help 06-08-2021, 14:04
Replies: 9
Views: 356
Posted By CrazY.
Re: natives usage (not sure about title)

I've tested your code, it worked without the problem you described.



L 06/08/2021 - 14:55:42: [testplugin.amxx] An item "item 1" successfully registered with ID: 0
item cost -> -1
L...
Forum: Suggestions / Requests 06-07-2021, 19:18
Replies: 3
Views: 200
Posted By CrazY.
Re: Read from file

Use the file functions to open the file and "parse" to get the strings that are in between the quotes.

https://www.amxmodx.org/api/file/fopen
https://www.amxmodx.org/api/string/parse
Forum: Scripting Help 06-07-2021, 19:13
Replies: 10
Views: 405
Posted By CrazY.
Re: ZP Kill bomb for humans

That's probably happening because zombie mod is also replacing the smoke grenade. Try to enable the kill bomb plugin before the zombie one.
Forum: Scripting Help 06-07-2021, 19:08
Replies: 9
Views: 356
Posted By CrazY.
Re: natives usage (not sure about title)

What you did is completely valid, there should be some other problem in your code. If you're not willing to post the source, debug the code.
Forum: Scripting Help 06-07-2021, 19:02
Replies: 2
Views: 240
Posted By CrazY.
Re: Fix for AMXX custom menus (from ZP)

This is to make sure you are not viewing another menu from the game itself, which would cause a problem.
You don't need that in the latest versions of amx mod x.

menu_display:...
Forum: General 06-02-2021, 11:49
Replies: 1
Views: 353
Posted By CrazY.
amxx giving strange output on sum of float and any

So, I was testing something and noticed that if you add a variable of type float to one of type any, it will give you a strange result. I guess this is a bug with the compiler.


#include...
Forum: Scripting Help 06-01-2021, 18:56
Replies: 7
Views: 715
Posted By CrazY.
Re: Using model skins

That would be easily done with this https://github.com/ValveSoftware/halflife/issues/199
It wasn't added yet, the thread is ~8 years, rip
Forum: Scripting Help 05-28-2021, 15:31
Replies: 5
Views: 280
Posted By CrazY.
Re: AddToFullPack hide entity from specific player

set_es(es_handle, ES_Effects, get_es(es_handle, ES_Effects) | EF_NODRAW)
Forum: Scripting Help 05-28-2021, 09:32
Replies: 6
Views: 383
Posted By CrazY.
Re: [Nvault] Save Data for particular Time Than Remove

You could use nvault_lookup to also get the timestamp and compare with get_systime().
Forum: Scripting Help 05-28-2021, 09:28
Replies: 3
Views: 237
Posted By CrazY.
Re: How do I use client_cmd(spk) properly?

You don't need formatex.

new RandomSound[64]
formatex(RandomSound, charsmax(RandomSound), "%s", g_SnapSounds[random(sizeof(g_SnapSounds))])
client_cmd(target, "spk %s",...
Forum: Scripting Help 05-23-2021, 08:22
Replies: 22
Views: 596
Posted By CrazY.
Re: Combine the menus

You will need a global variable to determine which menu should be displayed.


#include <amxmodx>

enum
{
CustomMenu1,
CustomMenu2,
CustomMenu3
Forum: HL1 Servers (HLDS) 05-23-2021, 07:51
Replies: 7
Views: 844
Posted By CrazY.
Re: Requirements for 2 servers

Source: https://support.steampowered.com/kb_article.php?ref=5386-HMJI-5162
Forum: Off-Topic 05-05-2021, 18:38
Replies: 3
Views: 1,015
Posted By CrazY.
Re: decompile amxx

Not sure what do you mean with "nothing changed". What are you trying to do?
Forum: Scripting Help 05-05-2021, 18:37
Replies: 1
Views: 220
Posted By CrazY.
Re: [CS 1.6]Editable Deathrun Mod Shop

If you are looking for someone to do that for you, you should ask in requests section instead.
Scripting help is for learning purposes.
Forum: Scripting Help 05-05-2021, 18:32
Replies: 5
Views: 323
Posted By CrazY.
Re: Bool different status on different maps

You can do that with nvault.
https://forums.alliedmods.net/showthread.php?t=91503
Forum: Off-Topic 05-04-2021, 10:31
Replies: 3
Views: 1,015
Posted By CrazY.
Re: decompile amxx

Short answer: not possible.
Use the decompiled with lysis as a reference to rewrite the whole thing.
Forum: Scripting Help 05-04-2021, 10:20
Replies: 2
Views: 211
Posted By CrazY.
Re: Getting money from headshot with Ham_Killed

You could use m_LastHitGroup with Ham_Killed.
Forum: Scripting Help 04-19-2021, 10:22
Replies: 6
Views: 248
Posted By CrazY.
Re: Write to .txt file and put +1

#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
register_plugin("Plugin", "Version", "Author")

new filename[128]
formatex(filename[get_configsdir(filename,...
Forum: Scripting Help 04-19-2021, 10:09
Replies: 6
Views: 248
Posted By CrazY.
Re: Write to .txt file and put +1

#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
register_plugin("Plugin", "Version", "Author")

new filename[128]
formatex(filename[get_configsdir(filename,...
Forum: Scripting Help 04-15-2021, 10:01
Replies: 2
Views: 253
Posted By CrazY.
Re: Knife with AmmoHUD

You will have to play with either AmmoX or CurWeapon and maybe WeaponList.
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 00:10.


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