Raised This Month: $79 Target: $400
 19% 

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: CrazY.
Forum: Scripting Help Today, 10:43
Replies: 13
Views: 133
Posted By CrazY.
Re: AWP Player limit.

CS_OnBuyAttempt forward is only available in amxmodx version 1.8.3 or later.
You will need to update your amxmodx. An alternative is this https://forums.alliedmods.net/showthread.php?t=198486 or use...
Forum: Scripting Help Today, 07:51
Replies: 3
Views: 113
Posted By CrazY.
Re: set specific price for each player

You could just multiply the default price by the percent of discount instead of doing this
cod_itemPrice[id][item] = cod_defaultPrice[item] *3 / 4

You will have something like this

// 1.0 is...
Forum: Scripting Help Today, 07:40
Replies: 13
Views: 133
Posted By CrazY.
Re: AWP Player limit.

What's the version of your amxmodx?
Forum: Scripting Help Today, 07:35
Replies: 12
Views: 340
Posted By CrazY.
Re: Add milliseconds

#include <amxmodx>
#include <engine>

new gEntity

public plugin_init()
{
gEntity = create_entity("info_target")
entity_set_string(gEntity, EV_SZ_classname, "hud_update")...
Forum: Scripting Help Yesterday, 15:54
Replies: 12
Views: 340
Posted By CrazY.
Re: Add milliseconds

You can create an entity and show the hud message in the think.
Forum: Scripting Help 10-13-2020, 08:05
Replies: 2
Views: 189
Posted By CrazY.
Re: get ground Z from an origin

What you will need is EngFunc_TraceLine. Subtracting 9999 from the start position z axis you'll get the end position. Trace a line using those positions and get the result of TR_vecEndPos.
Forum: Scripting Help 09-12-2020, 07:48
Replies: 3
Views: 331
Posted By CrazY.
Re: Help How To Give Weapon Ammo

https://www.amxmodx.org/api/cstrike/cs_set_user_bpammo
Forum: Scripting Help 09-07-2020, 11:13
Replies: 4
Views: 356
Posted By CrazY.
Override native

Hello, suppose I've a main plugin where natives are registered. Is there any way to override those natives through a "secondary" plugin?
Forum: Off-Topic 09-03-2020, 07:41
Replies: 3
Views: 2,175
Posted By CrazY.
Re: 50X Internal Server Error

It looks like the issue is solved now.
Forum: Scripting Help 09-02-2020, 09:12
Replies: 10
Views: 692
Posted By CrazY.
Re: Help for CT or T Custom Menu

You can do something like this:


#include <amxmodx>
#include <cstrike>

public plugin_init()
{
register_plugin("Plugin", "Version", "Author")
register_clcmd("say /menu", "CommandMenu")
Forum: Scripting Help 09-01-2020, 15:22
Replies: 10
Views: 692
Posted By CrazY.
Re: Help for CT or T Custom Menu

You can check which team the player is using cs_get_user_team native.


if (cs_get_user_team(id) == CS_TEAM_T)
{
// add TERRORIST menu options here
}
else
{
// add CT menu options here
Forum: Scripting Help 09-01-2020, 15:08
Replies: 2
Views: 333
Posted By CrazY.
Re: Tag mismatch for bool:has_used

You should provide the full code so people can help you, but it seems like you are comparing with a value of different type.
Forum: Scripting Help 08-31-2020, 09:34
Replies: 5
Views: 333
Posted By CrazY.
Re: the results of the bonus

Yes that should do it
Forum: Scripting Help 08-30-2020, 09:21
Replies: 5
Views: 333
Posted By CrazY.
Re: the results of the bonus

amxclient_cmd or client_cmd are what you are looking for.
Forum: Scripting Help 08-19-2020, 11:20
Replies: 2
Views: 319
Posted By CrazY.
Re: [PT-BR] Iniciando no amxmodx ajuda :!:

Hello, some people learn through reading, others through videos, I myself became better by doing, not only amxx but programming in general. You just need to define the method that most applies to you...
Forum: Scripting Help 07-14-2020, 08:10
Replies: 4
Views: 284
Posted By CrazY.
Re: emit_sound but with customizable sound parameters like in sentences.txt

I'm not sure if this is possible. You will probably need to edit the sound in an audio editor
Forum: Scripting Help 07-14-2020, 07:59
Replies: 4
Views: 284
Posted By CrazY.
Re: emit_sound but with customizable sound parameters like in sentences.txt

There's a pitch paramater in emit_sound function.
More info here https://www.amxmodx.org/api/amxmodx/emit_sound
Forum: Scripting Help 07-13-2020, 09:56
Replies: 6
Views: 350
Posted By CrazY.
Re: pev_body question

There are two known ways. The first is basically what everyone else already does; replace the default model of the weapon.

The second is this https://forums.alliedmods.net/showthread.php?t=287754...
Forum: Scripting Help 07-13-2020, 08:53
Replies: 1
Views: 228
Posted By CrazY.
Re: world model bug

Commenting the following lines should fix the problem

entity_set_model(iEntity, "models/w_hegrenade.mdl");
set_pev(iEntity, pev_dmgtime, 9999.0);
Forum: Off-Topic 07-06-2020, 18:48
Replies: 3
Views: 2,175
Posted By CrazY.
Re: 50X Internal Server Error

It works in the link you sent
Forum: Off-Topic 07-06-2020, 10:41
Replies: 3
Views: 2,175
Posted By CrazY.
50X Internal Server Error

I can't access the AMX Mod X "scripting help" section if I'm not logged in, have been getting the following error

https://i.imgur.com/Xt0To0F.png
Forum: Scripting Help 07-03-2020, 15:49
Replies: 1
Views: 178
Posted By CrazY.
Re: error 104: cannot find any methods for int

You made a mistake buddy, this section is to AMX Mod X questions
SourceMod section is this one https://forums.alliedmods.net/forumdisplay.php?f=107
Forum: Scripting Help 07-03-2020, 15:39
Replies: 10
Views: 404
Posted By CrazY.
Re: RegisterHookChain vs RegisterHam

There are some functions you can hook with reapi but not with hamsandwich and vice-versa, so it's situational. That is the only difference.
The answer to your question is: use the one that fits what...
Forum: Scripting Help 07-03-2020, 15:03
Replies: 15
Views: 493
Posted By CrazY.
Re: in_view_cone of entity

Actually it should be the inverse of what I told. If there's an obstacle it should return true, otherwise false.
Forum: Scripting Help 07-03-2020, 14:02
Replies: 15
Views: 493
Posted By CrazY.
Re: in_view_cone of entity

The problem lies in the is_wall_between_points function. You want to pass the entity index rather than 0. Also, compare TR_flFraction value instead of the distance. If the value of TR_flFraction is...
Showing results 1 to 25 of 500

 
Forum Jump

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


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