Raised This Month: $32 Target: $400
 8% 

Showing results 1 to 25 of 41
Search took 0.00 seconds.
Search: Posts Made By: TBagT
Forum: Scripting Help 08-27-2018, 12:29
Replies: 8
Views: 1,929
Posted By TBagT
Re: Get weapon model sequence frame count

Sorry for bumping, just wanted to inform that it works :), thanks HamletEagle, a tutorial would be awesome, I kinda of get it how it works, it reads the file at the specific line where the sequence...
Forum: Scripting Help 08-27-2018, 06:55
Replies: 8
Views: 1,929
Posted By TBagT
Re: Get weapon model sequence frame count

I'll try this out when I get back, thanks :)
Forum: Scripting Help 08-26-2018, 07:45
Replies: 8
Views: 1,929
Posted By TBagT
Forum: Scripting Help 08-26-2018, 07:22
Replies: 8
Views: 1,929
Posted By TBagT
Get weapon model sequence frame count

Hello,

is it possible to get how much frames does a sequence in model have ?
Forum: Scripting Help 08-23-2018, 14:29
Replies: 2
Views: 795
Posted By TBagT
Returning dynamic array

Hi guys,

how can I return a dynamic array from a function ?
getSkinByID( id ) {
new search = ArrayFindValue( SkinIds, id );

if( search === INVALID )
return...
Forum: Scripting Help 07-07-2018, 16:00
Replies: 16
Views: 3,465
Posted By TBagT
Re: wierd problem with FM_GetGameDescription

Try this, works for me
#include <amxmodx>
#include <fakemeta>

new g_modname[ 64 ];

public plugin_init( ) {
register_forward( FM_GetGameDescription, "fw_get_game_description" );
formatex(...
Forum: Scripting Help 04-25-2018, 23:19
Replies: 5
Views: 982
Posted By TBagT
Re: How to detect MP3Volume change from console and settings ?

Well the plugin displays players current volume if it was changed not from the menu but from console or options it doesn't refresh.
Forum: Scripting Help 04-25-2018, 10:01
Replies: 5
Views: 982
Posted By TBagT
Re: How to detect MP3Volume change from console and settings ?

Setting task every 5s to query_client_cvar( ) would not be the smartest idea ? :D
Forum: Scripting Help 04-25-2018, 09:25
Replies: 5
Views: 982
Posted By TBagT
How to detect MP3Volume change from console and settings ?

Hello guys,

I was wondering how could I get notified when user changes his MP3Volume setting ? I created a music plugin which allows player to increase volume in a menu. I use query_client_cvar( )...
Forum: Scripting Help 09-15-2017, 06:03
Replies: 2
Views: 659
Posted By TBagT
Re: get_array last item has a wrong value

Oh shit you're right :DD my bad
Forum: Scripting Help 09-15-2017, 05:39
Replies: 2
Views: 659
Posted By TBagT
get_array last item has a wrong value

Hello,

so basically I am passing an array of 3 items throught the native and when I log the values the last item has a wrong value.

Native function:

public native_set_fade( plg_id, plg_param...
Forum: Scripting Help 08-25-2017, 17:13
Replies: 9
Views: 1,604
Posted By TBagT
Re: [ H3LP ] Download .wav files without precaching

Spk command needs for the client to have the .wav file in order for it to play.
Forum: Scripting Help 08-25-2017, 11:38
Replies: 9
Views: 1,671
Posted By TBagT
Re: stop round end

Just use the infinite round plugin by arkshine
Forum: Scripting Help 08-16-2017, 10:31
Replies: 8
Views: 1,111
Posted By TBagT
Re: cvar problem

https://forums.alliedmods.net/showthread.php?t=249602 Just search...
Forum: Scripting Help 08-13-2017, 16:06
Replies: 6
Views: 933
Posted By TBagT
Re: any tut for add model by cvar?

#include <amxmodx>

new g_cvar_model, g_cache_model[ 128 ];

public plugin_precache( ) {
g_cvar_model = register_cvar( "amx_model_cvar", "models/some_model.mdl" );
...
Forum: Scripting Help 08-05-2017, 04:28
Replies: 3
Views: 766
Posted By TBagT
Re: VIP Menu HELP!

Could you atleast post the errors or describe them ?
Forum: Scripting Help 07-30-2017, 13:03
Replies: 2
Views: 629
Posted By TBagT
Re: Run time error

Try this

#define is_a_valid_player(%1) (1<=%1<=g_max_players)

new g_max_players;

public plugin_init( ) {
// ... //
g_max_players = get_maxplayers( );
}
Forum: Scripting Help 07-30-2017, 10:57
Replies: 3
Views: 782
Posted By TBagT
Re: Hud Sprite Not Working

Not too much to go on, but for starters, do you call this function by set_task ?
Next try:
public DisplaySprite(id, const iSprite) {
:arrow:
public DisplaySprite(id, const iSprite[ ]) {

If...
Forum: Scripting Help 07-29-2017, 11:58
Replies: 3
Views: 808
Posted By TBagT
Re: set_task problem

It seems you're trying to parse float values to a task function, you can send it like this.

set_task(5.0, "Game_Start", _, vOrigin, sizeof vOrigin );

public Game_Start( const Float:origins[ ] )...
Forum: Scripting Help 07-25-2017, 14:00
Replies: 5
Views: 1,424
Posted By TBagT
Re: Unprecaching map sounds

It will disable the precache, original post here (https://forums.alliedmods.net/showpost.php?p=1675386&postcount=4) the only difference is that the registerham should be done in precache.
Forum: Scripting Help 07-25-2017, 12:42
Replies: 5
Views: 1,424
Posted By TBagT
Re: Unprecaching map sounds

Hi I don't know if this will help but I use this code to remove ambient generic sounds from map it also unprecaches them, the code is Connors if I remember correctly. Maybe you'll manage rewrite this...
Forum: Scripting Help 07-06-2017, 16:12
Replies: 1
Views: 518
Posted By TBagT
Entity spawn optimization

Hello, currently my plugin spawns around 30-40 entities at round start. Would it be a good practise to add a delay between each spawn ?
Forum: Scripting Help 06-26-2017, 09:20
Replies: 8
Views: 1,950
Posted By TBagT
Re: FL_ONGROUND counts standing on entity

Thanks got it to work somehow with get_user_velocity( id, ... ); vector_length( ... ); :).
Another question is it possible to keep another player in front of another player by some units ? Like...
Forum: Scripting Help 06-26-2017, 05:52
Replies: 8
Views: 1,950
Posted By TBagT
Re: FL_ONGROUND counts standing on entity

Okay so if the player touches worldspawn entity while sprinting, it stops the sprinting and creates a sprite, everything works fine but if player falls on ground, touches a small slope on ground or...
Forum: Scripting Help 06-26-2017, 04:21
Replies: 8
Views: 1,950
Posted By TBagT
Re: FL_ONGROUND counts standing on entity

Thanks if( equal( sz_classname, "worldspawn" ) ) { ... } worked

Edit: another problem if player hits a slope or falls down it also activates :D any work around ? I am thinking of making an entity...
Showing results 1 to 25 of 41

 
Forum Jump

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


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