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

[CSGO] 1V1 Duel


Post New Thread Reply   
 
Thread Tools Display Modes
TheBOSS
Member
Join Date: Nov 2018
Old 06-04-2019 , 23:53   Re: [CSGO] 1V1 Duel
Reply With Quote #31

Quote:
L 06/05/2019 - 06:22:56: [SM] Exception reported: Invalid timer handle 0 (error 4)
L 06/05/2019 - 06:22:56: [SM] Blaming: duel.smx
L 06/05/2019 - 06:22:56: [SM] Call stack trace:
L 06/05/2019 - 06:22:56: [SM] [0] KillTimer
L 06/05/2019 - 06:22:56: [SM] [1] Line 213, C:\Users\abdom\Desktop\SM 1.9\scripting\duel.sp::Event_RoundEnd
I think this should fix it
Quote:
Handle DuelTimer = null;
and replace "KillTimer(DuelTimer, true);" to "delete DuelTimer;"
Quote:
public Action Event_RoundEnd(Handle event, const char[] name, bool dontBroadcast)
{
if(g_DuelMusic)
{
for (int i = 0; i <= MaxClients; i++)
{
g_DuelMusic = false;
StopSound(i, SNDCHAN_AUTO, "duel/sound1.mp3");
}
}
delete DuelTimer;
}
I'm not sure if that's correct way to use it but for me error hidden
TheBOSS is offline
TheBOSS
Member
Join Date: Nov 2018
Old 06-05-2019 , 09:40   Re: [CSGO] 1V1 Duel
Reply With Quote #32

you shouldn't use sm_settings in plugin
!settings for sourcemod client settings
you need to use "clientprefs" to save clients choosing in database "clientprefs" look at https://wiki.alliedmods.net/Client_P...PI_(SourceMod)
after that you can add menu to enable/disable duel music in clients setting menu (!settings)

Last edited by TheBOSS; 06-05-2019 at 11:05.
TheBOSS is offline
DiogoOnAir
Senior Member
Join Date: Jul 2018
Location: Portugal
Old 06-06-2019 , 08:51   Re: [CSGO] 1V1 Duel
Reply With Quote #33

// Update Notes 1.6//
Spoiler
__________________
I accept Private(Paid) plugins requests
If you like my job donate me Here
Feel free to add me on Steam
Feel free to add me on Discord DiogoOnAir | Config & Developer#7961
Check my website
If you want to buy any server, you can buy it from here!
Datacenters around the world!
DiogoOnAir is offline
DiogoOnAir
Senior Member
Join Date: Jul 2018
Location: Portugal
Old 06-06-2019 , 08:51   Re: [CSGO] 1V1 Duel
Reply With Quote #34

Quote:
Originally Posted by TheBOSS View Post
you shouldn't use sm_settings in plugin
!settings for sourcemod client settings
you need to use "clientprefs" to save clients choosing in database "clientprefs" look at https://wiki.alliedmods.net/Client_P...PI_(SourceMod)
after that you can add menu to enable/disable duel music in clients setting menu (!settings)
I ve added all your requests
Thanks for your support to this plugins!
Sorry for the time
__________________
I accept Private(Paid) plugins requests
If you like my job donate me Here
Feel free to add me on Steam
Feel free to add me on Discord DiogoOnAir | Config & Developer#7961
Check my website
If you want to buy any server, you can buy it from here!
Datacenters around the world!
DiogoOnAir is offline
TheBOSS
Member
Join Date: Nov 2018
Old 06-06-2019 , 16:14   Re: [CSGO] 1V1 Duel
Reply With Quote #35

this my edit on plugin
- replace <multicolors> to <csgo_colors>
- update duel music Preference
- add duel music volume
- exclude spectator players from duel_minplayers

(I'm not test it yet)
code from (abner round end sound) plugin and all thank for him https://github.com/abnerfs
Attached Files
File Type: sp Get Plugin or Get Source (duel.sp - 66 views - 20.1 KB)
File Type: inc csgo_colors.inc (3.7 KB, 68 views)
File Type: txt duel_phrases.txt (904 Bytes, 58 views)

Last edited by TheBOSS; 06-06-2019 at 16:24.
TheBOSS is offline
DiogoOnAir
Senior Member
Join Date: Jul 2018
Location: Portugal
Old 06-07-2019 , 10:03   Re: [CSGO] 1V1 Duel
Reply With Quote #36

Quote:
Originally Posted by TheBOSS View Post
this my edit on plugin
- replace <multicolors> to <csgo_colors>
- update duel music Preference
- add duel music volume
- exclude spectator players from duel_minplayers

(I'm not test it yet)
code from (abner round end sound) plugin and all thank for him https://github.com/abnerfs
Thanks for your amazing support to this project!
__________________
I accept Private(Paid) plugins requests
If you like my job donate me Here
Feel free to add me on Steam
Feel free to add me on Discord DiogoOnAir | Config & Developer#7961
Check my website
If you want to buy any server, you can buy it from here!
Datacenters around the world!
DiogoOnAir is offline
TheBOSS
Member
Join Date: Nov 2018
Old 06-07-2019 , 11:45   Re: [CSGO] 1V1 Duel
Reply With Quote #37

ur wlc
I suggest you remove vote mods and make it random
it's not more useful because there are more mods and littel chance to both players vote same mod
for example you can replace votes menu to ask players for duel (yes/no)
if both players accept, start random duel
then you can easly add more mods later

Last edited by TheBOSS; 06-07-2019 at 20:53.
TheBOSS is offline
DiogoOnAir
Senior Member
Join Date: Jul 2018
Location: Portugal
Old 06-09-2019 , 11:26   Re: [CSGO] 1V1 Duel
Reply With Quote #38

Quote:
Originally Posted by TheBOSS View Post
ur wlc
I suggest you remove vote mods and make it random
it's not more useful because there are more mods and littel chance to both players vote same mod
for example you can replace votes menu to ask players for duel (yes/no)
if both players accept, start random duel
then you can easly add more mods later
Ok will do it today!
Thanks for your support to this project!
__________________
I accept Private(Paid) plugins requests
If you like my job donate me Here
Feel free to add me on Steam
Feel free to add me on Discord DiogoOnAir | Config & Developer#7961
Check my website
If you want to buy any server, you can buy it from here!
Datacenters around the world!
DiogoOnAir is offline
DiogoOnAir
Senior Member
Join Date: Jul 2018
Location: Portugal
Old 06-09-2019 , 18:40   Re: [CSGO] 1V1 Duel
Reply With Quote #39

// Update Notes 1.7//
Spoiler
__________________
I accept Private(Paid) plugins requests
If you like my job donate me Here
Feel free to add me on Steam
Feel free to add me on Discord DiogoOnAir | Config & Developer#7961
Check my website
If you want to buy any server, you can buy it from here!
Datacenters around the world!
DiogoOnAir is offline
Enrory
Senior Member
Join Date: Nov 2016
Location: Austria
Old 06-13-2019 , 10:19   Re: [CSGO] 1V1 Duel
Reply With Quote #40

I have tested version 1.7

If the 2 last man standing. the duel starts automatic.
sometimes menu comes next round start.

If start the duel automatic it is possible to type 1 for yes and change duel mod.

hope you understand me and fix pls.
__________________
Enrory is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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