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

Showing results 1 to 25 of 73
Search took 0.01 seconds.
Search: Posts Made By: Dexon
Forum: Scripting Help 03-20-2023, 11:14
Replies: 4
Views: 519
Posted By Dexon
Re: Refresh hud information when manually change it

Sure. Here it is with better code and more explanation:
update_ammo_hud(id, iAmmoAmount, iBPAmmoAmount)
{
static msgCurWeapon

// Display the new antidotegun bullets
if(msgCurWeapon ||...
Forum: Scripting Help 03-19-2023, 17:06
Replies: 7
Views: 683
Posted By Dexon
Re: Player menu

There is literally no save, so there is no way for the plugin to remember the desired skin.
I made a few changes as ugly as your code is, so you can see the difference and the required calls.
Also,...
Forum: Scripting Help 03-19-2023, 15:59
Replies: 4
Views: 519
Posted By Dexon
Re: Refresh hud information when manually change it

Use this stock after setting ammo:
update_ammo_hud(id, iAmmoAmount, iBPAmmoAmount)
{
// Display the new antidotegun bullets
if(iAmmoAmount != -1)
{
...
Forum: Scripting Help 03-19-2023, 08:36
Replies: 1
Views: 436
Posted By Dexon
Re: Sound plugin first round

Hey, i believe this should work: (only for mp3, if need wav write comment)
#include <amxmodx>

new const g_cMusics[][] = {
"sound/example.mp3", "sound/example2.mp3"
};

public plugin_init(){...
Forum: General 12-05-2022, 11:09
Replies: 2
Views: 887
Posted By Dexon
The best classname for an NPC?

I've created zombie NPC's with many stuff and pathfinding, yet I'm struggling and having a really hard time finding out the problem of having crash if I put in any external plugin that uses entities...
Forum: General 11-20-2022, 03:59
Replies: 5
Views: 1,180
Posted By Dexon
Re: Any thoughts on this code?

I didn't look through fully your code but if you have complete control over timer you can also hide the that and show for example a hud msg instead of that.
@HideCD_TIMER(iId){
...
Forum: Scripting Help 06-17-2022, 12:06
Replies: 14
Views: 1,227
Posted By Dexon
Re: Emit_sound but different sound on every client

Thank you both for the answers. :)
Forum: Scripting Help 06-12-2022, 14:19
Replies: 14
Views: 1,227
Posted By Dexon
Re: Emit_sound but different sound on every client

I havent tried it yet, but I was also thinking about that. Ill give it a try soon.
Anyway, thanks for help.
Forum: Scripting Help 06-12-2022, 13:33
Replies: 14
Views: 1,227
Posted By Dexon
Re: Emit_sound but different sound on every client

Maybe I dont understand yea, but the code u sent is emitting sound from all players online and selected a sound, so if 16 players online + selected sound it will be played 16 times, 16 different...
Forum: Scripting Help 06-12-2022, 13:16
Replies: 14
Views: 1,227
Posted By Dexon
Re: Emit_sound but different sound on every client

Thank you for taking time, but Im not quite sure that you understand my question.
What function you just wrote is emitting sound from all players, but I want to emit a sound from ONLY 1 player, and...
Forum: Scripting Help 06-12-2022, 12:56
Replies: 14
Views: 1,227
Posted By Dexon
Re: Emit_sound but different sound on every client

In this sma, (if im not mistaken) if someone emits sound from menu, or via cmd it will play the sound the player chose.
Here:
emit_sound(id, CHAN_AUTO, szParsedSongPath, VOL_NORM, ATTN_NORM, 0,...
Forum: Scripting Help 06-12-2022, 11:36
Replies: 14
Views: 1,227
Posted By Dexon
Re: Emit_sound but different sound on every client

I already tried to check the syntax for any further information, but i didnt succed. Can you give me an example? Because i still dont see the solution.
To be clear: I want to emit sound Peter.wav...
Forum: Scripting Help 06-12-2022, 06:13
Replies: 14
Views: 1,227
Posted By Dexon
Emit_sound but different sound on every client

Hi,
I want to play a sound from a given location, so I use emit_sound, but I also want this sound to be different for each player on server.
Is it possible?
Forum: Suggestions / Requests 08-30-2021, 18:35
Replies: 7
Views: 1,226
Posted By Dexon
Re: [ZP] Block sandbags in modes

Search up to menu_command() function, and take a look to the switch() statement, inside that:case 0:
{
if ( !zp_get_user_zombie(id) )
{
new...
Forum: Suggestions / Requests 08-30-2021, 09:16
Replies: 7
Views: 1,226
Posted By Dexon
Re: [ZP] Block sandbags in modes

I didn't look all through, but i think you did all fine, i made it wrong : ))

In the ReadyToBuy() stock we wanted to print a msg to an id, but there was no transfered id, so everywhere we wrote...
Forum: Suggestions / Requests 08-30-2021, 03:50
Replies: 7
Views: 1,226
Posted By Dexon
Re: [ZP] Block sandbags in modes

Hello,
due to we have to check the round and print a message in every case if the user attempts to buy or place the item down, we create a little stock:
ReadyToBuy(){
if(zp_is_nemesis_round()...
Forum: Scripting Help 12-18-2020, 02:34
Replies: 10
Views: 1,093
Posted By Dexon
Re: How to check user's KD?

Thank you, and everyone else too for the help! :avast:
Forum: Scripting Help 12-17-2020, 16:19
Replies: 10
Views: 1,093
Posted By Dexon
Re: How to check user's KD?

Thank you all, it's all fine. :crab:

But usually K/D counts even if user has 0 deaths.
So may anyone have an idea about:
if a user has 0 deaths, make the value to 1, but not the get_user_deaths,...
Forum: Scripting Help 12-17-2020, 04:44
Replies: 10
Views: 1,093
Posted By Dexon
Re: How to check user's KD?

Thank you all for the answer, now I got this:
if(get_user_frags(id) > 0){
ColorChat(id, "!tKD-d: !g%f", get_user_frags(id)/get_user_deaths(id))
}
But it shows the same error. :/

And im not...
Forum: Scripting Help 12-16-2020, 16:37
Replies: 10
Views: 1,093
Posted By Dexon
How to check user's KD?

Hello, could anyone help in this?
I tried with the following:

public kd_check(id){
ColorChat(id, "!tYour KD: !g%i", (get_user_frags(id)/get_user_deaths(id)))
}


Log:
Run time error 11:...
Forum: Scripting Help 12-13-2020, 15:52
Replies: 4
Views: 857
Posted By Dexon
Forum: Scripting Help 12-13-2020, 12:04
Replies: 4
Views: 857
Posted By Dexon
Re: How to block round end?

I have rehlds :c
Forum: Scripting Help 12-13-2020, 05:51
Replies: 4
Views: 857
Posted By Dexon
How to block round end?

Hello,
I want to block the round end which comes when everyone dies in one team.
Maybe anyone has idea for it?
Forum: Suggestions / Requests 08-08-2020, 07:23
Replies: 0
Views: 663
Posted By Dexon
Cs 1.6 ZP bots/entities

Hey,
Is there any working bot/entity plugin for ZP? I used podbots till now but I found out that they make many-many segmentation fault and meaningless bugs.

In the other way I tried to find an...
Forum: New Plugin Submissions 05-22-2020, 19:20
Replies: 151
Views: 59,545
Posted By Dexon
Re: CSO Costumes v3.5

Thanks for the testing, now everything is fine.
At least I also learned something from this mistake :3

Respect for you made this hard plugin, and then published it.
Showing results 1 to 25 of 73

 
Forum Jump

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


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