neonDragon.net
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Mati's Last Request Plugin

+27
Spx.
Syntech
gusti
DarkNess
x-regit-x
Necro
kami (GER]
Koyumu
pn
Epicness
Chillz
Mizurri
maGeNN
J3FFR3Y
BBQQ
Aokiji*
Chasin
Marksel
Hanyuu
hazik666
Falastiny
Satoko
LongD
Liz
Agent Smith
Hibari
Mati
31 posters

Page 1 of 3 1, 2, 3  Next

Go down

Mati's Last Request Plugin Empty Mati's Last Request Plugin

Post by Mati Fri Sep 11, 2009 1:47 pm

Already long ago, I realized that something is missing on the jailbreak server: A last request script to handle a LR comfortable and orderly.

The current last request happens like this:
"Your last request?"
"shot for shot"
"Whats your last request??" (CT didnt read it, because it was gone too fast)
"SHOT FOR SHOT"
"Ok, hp?"
"55hp"
"Ok, let's go heal"
1 min later
"Ok, someone give him a deagle"
20 sec later
"With whom do you want to start?"
"abc."
"Ok let's go"
After he won the s4s:
"Hp?"
"40"
"Ok, knife me twice"


The whole typing, asking, searching and hp procedure is an unnecessary efford - that's why I thought a last request script would be a great thing and a big advancement. I missed that possibility really much. So after a while I created a thread on the forums - that was over one month ago - with that suggestion. Hardly anyone replied in the beginning, but at last Koyumu answered that he will install such a script. I talked with him later, and he told me, he will ask a programmer to do so in a while. Meanwhile, I played with the thought to program such a plugin myself - I have a few programming skills in other languages. So I thought, let's read up on PAWN and Amxx Plugin programming a bit. The whole thing seemed a bit strange to me though, so I refused that idea first. But then, I just thought, let's just start, and try how far it'll come.

And yeah, I came far. I programmed sequence for sequence, and after some hours, I had the main structure finished. One day later, I only added a few things and fixes, as well as today. It has 300 lines, a bit more that you may suppose.


Now I'd like to introduce this plugin in this thread, and mention the features.
- The last terrorist alive get's a (personal) notice about his last request. He can call the last request menu with /lr then (and no one other): http://img5.imagebanana.com/img/iv2mxnzx/ms_jailbreak0006.png

- After the /lr, the first menu page appears, where the terrorist can choose between the available last request games: http://img5.imagebanana.com/img/5ujkmmk/ms_jailbreak0000.png

- After his selection, he gets forwarded to the second page, where he can choose an alive CT opponent: http://img5.imagebanana.com/img/mfnzgd77/ms_jailbreak0001.png

- Now the last request game starts. The terrorist glows red and the CT glows blue, so that the terrorist can directly identificate his opponent. The T and CT get automatic health, armor, and weapon. At knife, the weapons get stripped for the terrorist. At shot for shot, the weapon get stripped for the terrorist, and both sides get a full-loaded deagle. At gun toss the weapons get stripped for the terrorist, and both sides get a deagle with 7 shot (to minimize the rebel-potential).

A HUD-Message and chat messages with the game, players, and explanatory notes appears (how to play the game). The /lr-lock get active, so that the terrorist can't make LR within a LR: http://img5.imagebanana.com/img/qula8hr/ms_jailbreak0002.png

- After anyone of these 2 players dies, the game is finished, the glow disappears, the lock get's disabled again and a chat message with the result appears: http://img5.imagebanana.com/img/mf7lcslt/ms_jailbreak0005.png

- The terrorist can continue his last request against other living CTs know, and call /lr again.


Further notes:
- There is also a help page which can be called with /lrhelp, which displays a help page. This page contains further informations, especially about the last request games. The help page can be seen here.
- The script isn't on the server yet, Koyumu will test it tomorrow, and Agito already did so.
- Gun Toss needs to be put as an available game in the rules, but since this was already discussed, it shouldn't be a problem.
- The script can be expanded for other games, if spray contest or something different is added as a valid LR-game.
- The last request can only be made by the last terrorist alive, so that no one abuses it.
- I do not publish the source code of this script or the compiled plugin itself at the moment, as well as the nD server admins. You can ask questions and contact me via mail (mati_ AT zenbe DOT com) though.
- Thanks for people who tested the plugin with me like liz and hibari.

Feel free to ask questions, report bugs, and write feedback about this plugin.
Mati
Mati
Admin
Admin

Number of posts : 876
Age : 32
Birthday : 1991-06-02
Location : Austria
Registration date : 2009-07-20

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by Hibari Fri Sep 11, 2009 1:49 pm

so damn awesome Mati!
and no problem ^^
Hibari
Hibari

Male Number of posts : 2048
Age : 29
Birthday : 1994-07-01
Location : Sweden
Registration date : 2009-08-11

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by Agent Smith Fri Sep 11, 2009 1:52 pm

too long to read because but I did read the first story..

whatever, could be nice yes.
Agent Smith
Agent Smith

Male Number of posts : 2308
Age : 29
Birthday : 1995-04-29
Location : Holland
Registration date : 2009-07-08

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by Liz Fri Sep 11, 2009 1:54 pm

it was fun testing it, cant wait until they get it on nD! good job Very Happy
Liz
Liz
nD* Zombie Member
nD* Zombie Member

Female Number of posts : 314
Age : 28
Birthday : 1995-06-10
Location : Norway
Registration date : 2009-08-22

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by LongD Fri Sep 11, 2009 1:57 pm

Wow This would be so awesome and save alot of time XD
LongD
LongD
nD* Fun Member
nD* Fun Member

Male Number of posts : 1208
Age : 28
Birthday : 1995-11-24
Location : Landskrona,Sweden
Job/hobbies : Sprite animating,youtube,Manga,Anime,listening to music,being laze then and then,picking on my brother
Registration date : 2009-08-10

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by Satoko Fri Sep 11, 2009 2:00 pm

i hope it isn't causing more svc bads then usual if koy takes it for jail.
Satoko
Satoko

Male Number of posts : 1690
Age : 36
Birthday : 1988-02-29
Registration date : 2009-04-11

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by Falastiny Fri Sep 11, 2009 2:12 pm

Great Plugin to have Very Happy

I remember iv been on a serv with almost same plugin...

The /lr is nice Very Happy
Falastiny
Falastiny

Male Number of posts : 971
Age : 32
Birthday : 1991-07-21
Location : Skåne - Sweden
Registration date : 2009-06-25

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by hazik666 Fri Sep 11, 2009 3:13 pm

Nice mati
And it seems better than the last one you done
hazik666
hazik666
nD* Fun Member
nD* Fun Member

Male Number of posts : 4838
Age : 1351
Birthday : 0672-12-27
Location : Scotland
Registration date : 2009-02-27

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by Hanyuu Fri Sep 11, 2009 4:48 pm

Great job on the plugin, it'd be great to have on the server. ^_^
Hanyuu
Hanyuu
nD* Fun Member
nD* Fun Member

Male Number of posts : 1790
Age : 40
Birthday : 1983-10-13
Location : United States
Job/hobbies : College Student, Soccer, Drawing, Karaoking, Anime+Manga, Swimming
Registration date : 2009-07-25

http://hanyuu1983.deviantart.com/

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by Marksel Fri Sep 11, 2009 5:01 pm

Mati = win
Marksel
Marksel
nD* Runner Member
nD* Runner Member

Male Number of posts : 3979
Age : 32
Birthday : 1992-02-01
Location : Holland
Job/hobbies : Owning you!
Registration date : 2009-08-19

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by Chasin Fri Sep 11, 2009 5:05 pm

I tested it with Mati, and I'm not a big fan of it if im honest, I told him why, and i figured id post it here aswell.

The idea behind it is GREAT, no doubt about that.

But i simply don't see the problem with typing in the first place.

Second, I think it could be abused, for example when there is 1 guy alive, hiding somewhere, he could do /lr and choose shot for shot, and he just gives himself a gun.

Third, its a bit the same as last, But while doing last request, i T would unexpectedly get a gun, which i'm not really a fan off, Ts need a challenge.

Forth, I'm sure there was a forth, but i cant seem to remember! Razz i might edit it later.

Final note: Thanks alot Mati for putting effort in creating something for our servers

ooh here is my first edit: I wouldn't have a problem with it if it would get added on the server anyway Razz but I don't think its really nessecary

Chasin

Male Number of posts : 845
Age : 35
Birthday : 1988-05-27
Location : Holland
Registration date : 2009-08-20

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by Marksel Fri Sep 11, 2009 5:10 pm

Even though last request isn't exactly the biggest problem when it comes to time consuming games, but still this plugin should get us alteast 1 more round per map, and alot less whine 'OMFG JUST KILL HIM FFS'
Marksel
Marksel
nD* Runner Member
nD* Runner Member

Male Number of posts : 3979
Age : 32
Birthday : 1992-02-01
Location : Holland
Job/hobbies : Owning you!
Registration date : 2009-08-19

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by Mati Fri Sep 11, 2009 6:01 pm

Chasin wrote:But i simply don't see the problem with typing in the first place.
I listed the problems detailed in my first post.

Second, I think it could be abused, for example when there is 1 guy alive, hiding somewhere, he could do /lr and choose shot for shot, and he just gives himself a gun.
The terrorist can also get "himself a gun" with requesting a gun for shot for shot. No argument.

Third, its a bit the same as last, But while doing last request, i T would unexpectedly get a gun, which i'm not really a fan off, Ts need a challenge.
A red HUD-Message and 3 Chat Messages appears on /lr, informing about that. I wouldn't called that "unexpectedly". And if any CT dont know that they both get auto-equipped, he will see that after one time.

I really don't see the point of your arguments, because as well as at the moment the last T can request a weapon, but it costs much more unecessary time, brings more chaos, and is more complicated with all those questions, weapon dropping and healing.
Mati
Mati
Admin
Admin

Number of posts : 876
Age : 32
Birthday : 1991-06-02
Location : Austria
Registration date : 2009-07-20

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by hazik666 Sat Sep 12, 2009 2:07 am

I think he should get a month V-I-P because this plugin looks amazing and will help people on server
hazik666
hazik666
nD* Fun Member
nD* Fun Member

Male Number of posts : 4838
Age : 1351
Birthday : 0672-12-27
Location : Scotland
Registration date : 2009-02-27

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by Aokiji* Sat Sep 12, 2009 2:37 am

it could come handy
Aokiji*
Aokiji*

Male Number of posts : 111
Age : 34
Birthday : 1989-07-21
Location : Belgium
Job/hobbies : cs4life
Registration date : 2009-08-05

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by Hibari Sat Sep 12, 2009 10:15 am

yeah.. Mati should get a month V-I-P!
Hibari
Hibari

Male Number of posts : 2048
Age : 29
Birthday : 1994-07-01
Location : Sweden
Registration date : 2009-08-11

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by BBQQ Sat Sep 12, 2009 10:27 am

I think this takes "too much out"...

like stripping guns on knife duel, it's pretty funny if the ct's fail and get shot over.

BBQQ

Number of posts : 125
Age : 33
Birthday : 1991-02-06
Registration date : 2009-07-23

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by Mati Sat Sep 12, 2009 11:00 am

The plugin is on the server now. I was the first one who made usage of it.

Surprisingly the names of some CTs on the second page (where you choose the opponent) weren't displayed. After the selection the red HUD-Message displayed the name though. The index-ID's where also correct, so that the script processed the right player, only some names on the second page werent't visible. Maybe it was only this time, we'll see if this problem exists. On a fresh local server the opponent-page was without problems, irrespective how much alive CTs there are.
Mati
Mati
Admin
Admin

Number of posts : 876
Age : 32
Birthday : 1991-06-02
Location : Austria
Registration date : 2009-07-20

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by Agent Smith Sat Sep 12, 2009 12:42 pm

the deagle of gun toss should be empty, because I have seen you abuse it, you got the deagle and shot the last counter terrorist with it.

deagle must be EMPTY! Smile
Agent Smith
Agent Smith

Male Number of posts : 2308
Age : 29
Birthday : 1995-04-29
Location : Holland
Registration date : 2009-07-08

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by Mati Sat Sep 12, 2009 12:46 pm

That's not right agent smith, I have won the gun toss. I thought 7 shots would be ok, because the terrorist can kill the CT than faster when he looses. And if he just shoots altough he didn't loose it's rebelling -> other CTs can kill him.
Mati
Mati
Admin
Admin

Number of posts : 876
Age : 32
Birthday : 1991-06-02
Location : Austria
Registration date : 2009-07-20

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by hazik666 Sat Sep 12, 2009 2:36 pm

when knifing you can pick up a gun and shoot the other person is it possible to fix it?
hazik666
hazik666
nD* Fun Member
nD* Fun Member

Male Number of posts : 4838
Age : 1351
Birthday : 0672-12-27
Location : Scotland
Registration date : 2009-02-27

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by Mati Sat Sep 12, 2009 3:10 pm

You hardly can prevent that someone picks up a gun. A terrorist can always rebel on last request, you can't prevent that. That's why other CT should watch him, so they can react.
Mati
Mati
Admin
Admin

Number of posts : 876
Age : 32
Birthday : 1991-06-02
Location : Austria
Registration date : 2009-07-20

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by Agent Smith Sat Sep 12, 2009 6:53 pm

There is some bug with choosing CT players I have heard...
Agent Smith
Agent Smith

Male Number of posts : 2308
Age : 29
Birthday : 1995-04-29
Location : Holland
Registration date : 2009-07-08

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by Mati Sun Sep 13, 2009 9:02 am

Yep, as mentioned in this post, this problem continues existing, but I think I know the cause of this problem now.

Technically, each player has an index ID from 1 to 32. With that IDs you work when you set properties on a player. To get the name of a player you use a "lookup" with the function "get_user_name". Now, in the menu function there's a list of all index IDs of alive CTs, and via a loop, each ID gets translated to the player name.

After that, a menu entry is added with the player name and his index ID. That works without problem on my local testserver, and also on the nD server at 5AM in the morning, so it seems, the server performance is amongst the day too bad, to handle this multiple "playername lookup" fast enough, so nothing but the menu number get's displayed after the first name. The player lookup later, when the opponent is chosen, is without problems again, because it is only one lookup.

The script itself doesn't get affected by this, because it works everywhere with these index IDs, only the multiple lookup of the playername is. I personally find it strange, that amxx doesn't "pause" the script, until the lookup is really finished.

I'll think of a possibility to fix that.
Mati
Mati
Admin
Admin

Number of posts : 876
Age : 32
Birthday : 1991-06-02
Location : Austria
Registration date : 2009-07-20

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by J3FFR3Y Thu Oct 15, 2009 7:33 pm

is the plugin going to be public?

J3FFR3Y

Number of posts : 1
Age : 34
Birthday : 1990-05-04
Registration date : 2009-10-15

Back to top Go down

Mati's Last Request Plugin Empty Re: Mati's Last Request Plugin

Post by Sponsored content


Sponsored content


Back to top Go down

Page 1 of 3 1, 2, 3  Next

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum