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

{REQ} Paying for a 1v1 !challenge plugin


Post New Thread Reply   
 
Thread Tools Display Modes
SM9
Veteran Member
Join Date: Sep 2013
Location: United Kingdom
Old 06-23-2015 , 03:35   Re: {REQ} Paying for a 1v1 !challenge plugin
Reply With Quote #11

I started coding a private version a long time ago, but I quickly lost interest due to lack of motivation.

Heres the source code, it compiles and works (Probably with errors, crashes and unexpected behaviour) and yes the source code is not the greatest, It could probably be improved a lot so if anybody wants to use the source as a base then feel free.
Attached Files
File Type: sp Get Plugin or Get Source (1v1duel.sp - 128 views - 14.5 KB)
SM9 is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 06-23-2015 , 03:55   Re: {REQ} Paying for a 1v1 !challenge plugin
Reply With Quote #12

Alright, just to be sure :
1) Player1 type !duel
2) Menu popup with a list of all connected player
3) Player1 select a player in the list (say Player2)
4) Player2 get a notification (via menu) Accept 1v1 duel? [YES/NO]
5) if [YES] Player1 is teleported to predefined coordsX and Player2 is teleported to predefined coordsY
6) Duel start, duel end when someone reach a X limits of frags OR a player type !surrender
7) On duel end, both player slayed.

NOTE: Configuration file could contain a infinite ammount of coords.
__________________
Want to check my plugins ?

Last edited by Arkarr; 06-23-2015 at 03:56.
Arkarr is offline
SM9
Veteran Member
Join Date: Sep 2013
Location: United Kingdom
Old 06-23-2015 , 04:06   Re: {REQ} Paying for a 1v1 !challenge plugin
Reply With Quote #13

Quote:
Originally Posted by Arkarr View Post
Alright, just to be sure :
1) Player1 type !duel
2) Menu popup with a list of all connected player
3) Player1 select a player in the list (say Player2)
4) Player2 get a notification (via menu) Accept 1v1 duel? [YES/NO]
5) if [YES] Player1 is teleported to predefined coordsX and Player2 is teleported to predefined coordsY
6) Duel start, duel end when someone reach a X limits of frags OR a player type !surrender
7) On duel end, both player slayed.

NOTE: Configuration file could contain a infinite ammount of coords.
Somewhat correct, although if you take a look at my sourcecode, you don't need to teleport players, you can just que them together, also slaying is not needed.
SM9 is offline
SM9
Veteran Member
Join Date: Sep 2013
Location: United Kingdom
Old 06-23-2015 , 04:19   Re: {REQ} Paying for a 1v1 !challenge plugin
Reply With Quote #14

After looking back at my code I'm honestly quite ashamed, although over time you improve as a scripter, I can already see many areas that I could improve, although I wont personally be taking this up. For a start you could probably use Data packs instead of the Global variables but that's optional. But yeah, its an idea of how I achieved things, I hope its useful even though it contains a lot of redundant code
SM9 is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 06-23-2015 , 13:02   Re: {REQ} Paying for a 1v1 !challenge plugin
Reply With Quote #15

Plugin almost finished !

Also, very complexe system using high-end software to help me :

Yay !
__________________
Want to check my plugins ?
Arkarr is offline
eZ@AG
Junior Member
Join Date: May 2015
Old 06-25-2015 , 10:58   Re: {REQ} Paying for a 1v1 !challenge plugin
Reply With Quote #16

bumb
eZ@AG is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 06-26-2015 , 09:13   Re: {REQ} Paying for a 1v1 !challenge plugin
Reply With Quote #17

Quote:
Originally Posted by eZ@AG View Post
bumb
In holiday. Comming back in 5 days.
__________________
Want to check my plugins ?
Arkarr is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 06-30-2015 , 12:16   Re: {REQ} Paying for a 1v1 !challenge plugin
Reply With Quote #18

Back. Except result tonight.
__________________
Want to check my plugins ?
Arkarr is offline
kodachrome
Junior Member
Join Date: Jun 2015
Old 07-01-2015 , 06:40   Re: {REQ} Paying for a 1v1 !challenge plugin
Reply With Quote #19

Quote:
Originally Posted by Arkarr View Post
Back. Except result tonight.
Everything still going well? Btw, I'll shoot you a donation tomorrow once I get off work!
kodachrome is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 07-01-2015 , 06:41   Re: {REQ} Paying for a 1v1 !challenge plugin
Reply With Quote #20

Quote:
Originally Posted by kodachrome View Post
Everything still going well? Btw, I'll shoot you a donation tomorrow once I get off work!
Don't do that until I finish it.

EDIT: but thanks anyway.
__________________
Want to check my plugins ?

Last edited by Arkarr; 07-01-2015 at 06:42.
Arkarr 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 20:11.


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