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

Showing results 1 to 25 of 189
Search took 0.01 seconds.
Search: Posts Made By: GoldNux
Forum: Scripting Help 11-24-2022, 00:29
Replies: 9
Views: 4,186
Posted By GoldNux
Re: Generic Bomb Plant

I run a 1.6 server with steamcmd on a debian vm.
After installing orpheu and adding it to modules.ini I created a directory called "CGrenade" in functions like you said. Then I created a file...
Forum: New Plugin Submissions 11-22-2022, 22:40
Replies: 1
Views: 1,387
Posted By GoldNux
RETAKE BOMBSITE ~ By: GoldNux

RETAKE BOMBSITE ~ By: GoldNux
___________________________

Description:

Spawn close to bombsites and practice retakes together!

Functions:

Bomb is planted automatically.
Forum: Scripting Help 11-22-2022, 17:39
Replies: 0
Views: 371
Posted By GoldNux
Defuse/Team kill does not count as win (mp_winlimit)

I'm using a custom wincounter that increments every ct/t win sound event.
To have to change map when wincounter reaches the max winrounds I set, I bind it to "mp_winlimit":

In plugin_ini:...
Forum: Scripting Help 11-22-2022, 14:40
Replies: 3
Views: 561
Posted By GoldNux
Re: Spawning a smoke cloud in the map

Wow thanks! This is so much fun.
One question, can I emit sound from the entity?

I tried to look at it but I'm not sure how to find the entity index.
Forum: Scripting Help 11-22-2022, 06:08
Replies: 3
Views: 561
Posted By GoldNux
Spawning a smoke cloud in the map

I'm not sure how this works so an explanation along with an example would be great.
I figured I needed an entity to spawn the cloud, but I'm not sure which entity is invisible and does not clip the...
Forum: Scripting Help 11-18-2022, 21:25
Replies: 0
Views: 396
Posted By GoldNux
Getting time left before c4 explotion

edit: Solved: Christ.. I put %i instead of %f SORRY!

Below is how I see it used when looking at examples, but for me it just prints:
1107723518
1107948770

public printC4Timer()
{
new c4...
Forum: Scripting Help 11-17-2022, 22:56
Replies: 26
Views: 1,459
Posted By GoldNux
Re: Storing string in cVar

Very nice! Thanks a ton.
I will take a look at it tomorrow.

5 am over here, time to get some sleep. :)
Goodnight thanks again.
Forum: Scripting Help 11-17-2022, 22:13
Replies: 26
Views: 1,459
Posted By GoldNux
Re: Storing string in cVar

Thanks a lot, much appreciated!
But I have a question.

Instead of making many cvars and variables I would like to parse a long string like I mentioned before.
But I'm not sure how to handle a...
Forum: Scripting Help 11-17-2022, 20:42
Replies: 26
Views: 1,459
Posted By GoldNux
Re: Storing string in cVar

I'm thinking I could parse the value and read multiple settings from one string.
If I figure out how to do that.

Something like this: "gn_gear" "weapon_ak47 weapon_usp flashbang flashbang...
Forum: Scripting Help 11-17-2022, 19:32
Replies: 26
Views: 1,459
Posted By GoldNux
Re: Storing string in cVar

I'm sorry for being unclear.
I would like to register a cvar that can store a string similar to the "name" command.
I need this so that users of my plugin can set which weapons to spawn with with a...
Forum: Scripting Help 11-17-2022, 19:22
Replies: 26
Views: 1,459
Posted By GoldNux
Storing string in cVar

I would like to store strings in cVars, can someone show me how to do this properly?
new g_pCvarTest[32]?
g_pCvarTest = register_cvar("gn_test", "teststring")

Thanks a ton.
Forum: Scripting Help 11-17-2022, 10:07
Replies: 3
Views: 600
Posted By GoldNux
Re: PODBOT not reacting to auto bomb plant.

Thanks for responding.
This is called on newRound(),


new mapname[31]
get_mapname(mapname,31)
new Float:origin[3];
new rngBomb
rngBomb = random_num(1,100)
if(equali(mapname,...
Forum: Scripting Help 11-16-2022, 09:58
Replies: 3
Views: 600
Posted By GoldNux
PODBOT not reacting to auto bomb plant.

The plugin I'm working on plants the bomb automatically, testing it with bots they only rush the site when a player or bot manually plants the bomb.

Does anyone know if I can get them to rush the...
Forum: Scripting Help 11-15-2022, 12:57
Replies: 7
Views: 879
Posted By GoldNux
Re: Old problem: no points from bomb explode/defuse

I have tried so many ways for hours with no success.
I'm not sure if it is a problem with my plugin planting the bomb automatically or if it is because I'm testing with bots as the bomb is not...
Forum: Scripting Help 11-13-2022, 19:15
Replies: 7
Views: 879
Posted By GoldNux
Old problem: no points from bomb explode/defuse

The topic has been discussed but as far as I can find it has not been properly solved:
https://forums.alliedmods.net/showthread.php?t=15962&page=2
If a CT is killed by the bomb, planter gets...
Forum: Scripting Help 11-12-2022, 14:45
Replies: 1
Views: 376
Posted By GoldNux
Server crash on get_pcvar_num

The following code crash my server a few seconds after function is called. (It differs)


// Plugin init
pCvarMinCTWins = register_cvar("gn_minctwins", "1")
pCvarMinTWins =...
Forum: Scripting Help 11-12-2022, 05:26
Replies: 2
Views: 507
Posted By GoldNux
Issue with switch statement

Solved, I used the reserved keyword "enum". x)

I'm doing something wrong in this switch statement and I don't understand what it is.
If I remove this function code compiles as it should.
...
Forum: Scripting Help 11-11-2022, 17:11
Replies: 27
Views: 1,363
Posted By GoldNux
Re: Can't teamswap dead players

Thanks a ton bro!
It works. <3
Forum: Scripting Help 11-10-2022, 15:16
Replies: 27
Views: 1,363
Posted By GoldNux
Re: Can't teamswap dead players

I still have one issue:
I'm keeping count on team 1 and team 2 with variables that are gets +1 if ct/t win.
When I kill the players at round_end event the ct or t win is triggered twice so the...
Forum: Scripting Help 11-10-2022, 13:51
Replies: 27
Views: 1,363
Posted By GoldNux
Re: Can't teamswap dead players

Thanks man, it works now!
This is what it looks like if anyone has the same issue:
public SwapTeams()
{
new players[32];
new playercount;
get_players(players, playercount, "h");
...
Forum: Scripting Help 11-09-2022, 15:01
Replies: 27
Views: 1,363
Posted By GoldNux
Re: Can't teamswap dead players

There is definitely an issue with the event.
I have tried hooking win sounds, end round event and target bombed.
Non of them work even with a delay on the function that switches players.

But if...
Forum: Scripting Help 11-09-2022, 14:24
Replies: 27
Views: 1,363
Posted By GoldNux
Re: Can't teamswap dead players

Yes, thanks.

So I'm about to give up, but I think it is pretty clear that the issue is with death from the bomb.
This test below works flawlessly, if I type "kill" in chat and then "test", I get...
Forum: Scripting Help 11-09-2022, 13:16
Replies: 27
Views: 1,363
Posted By GoldNux
Re: Can't teamswap dead players

I see!
I downloaded the same version of meta mod for both the linux server and windows compile machine.
Installed these by changing the dll and so file.
Compiled plugin, transferred it and...
Forum: Scripting Help 11-09-2022, 12:48
Replies: 27
Views: 1,363
Posted By GoldNux
Re: Can't teamswap dead players

I'm confused, would it not be a good idea to keep the latest version of amxmodx on the https://www.amxmodx.org/downloads.php site?
And the same with metamod, where can I find the latest version if...
Forum: Scripting Help 11-09-2022, 12:08
Replies: 27
Views: 1,363
Posted By GoldNux
Re: Can't teamswap dead players

Ok so I re-installed the entire server with steamcmd.
Downloaded and installed amxmodx and metamod. (The latest version from the list you provided that supports both windows and linux)
Checked in...
Showing results 1 to 25 of 189

 
Forum Jump

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


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