Auto-sorry/goodgame script

Discussion of server or client modifications. Custom hudguns, GUI's, websites, etc.
Post Reply
Night_Hawk
Leaders
Posts: 343
Joined: Wed Aug 10, 2016 10:48 pm
Location: Melbourne, Australia
Playstyle: fragger

Auto-sorry/goodgame script

Post by Night_Hawk »

Hey all,
Was just wondering does anyone have a good game and auto sorry script? The auto sorry one i have says sorry in spec if I'm spectating someone which is annoying.

Cheers
Image
DeathStar
Leaders
Posts: 336
Joined: Sun Jun 12, 2016 1:07 am
Location: GB
Playstyle: fragger
Contact:

Re: Auto-sorry/goodgame script

Post by DeathStar »

Night_Hawk wrote:Hey all,
Was just wondering does anyone have a good game and auto sorry script? The auto sorry one i have says sorry in spec if I'm spectating someone which is annoying.

Cheers
I can fix that script by adding a simple

Code: Select all

if (! (isspectator)) [
to stop it from saying sorry if you're spectating. Send me the script and i'll make it awesome. :D
nopnotme
Guest
Posts: 84
Joined: Mon Jun 13, 2016 8:56 am
Playstyle: map/frag
Contact:

Re: Auto-sorry/goodgame script

Post by nopnotme »

simple gg script will be /intermission = [say ".:GG:."] go ahead and change the string inside the " " to have your own custom messages but as far as tk script you will have to do a little more code, not impossible but if you would like me to mod it for you just pm me in the time being
Night_Hawk
Leaders
Posts: 343
Joined: Wed Aug 10, 2016 10:48 pm
Location: Melbourne, Australia
Playstyle: fragger

Re: Auto-sorry/goodgame script

Post by Night_Hawk »

Thanks both for the reply, here is the auto sorry script :)

Cheers.

Code: Select all

bind P [showgui "autosorry"]
editbind P [showgui "autosorry"]
specbind P [showgui "autosorry"]

alias but_text "^f3The script is disabled. Click here to enable."
alias but_text_com but_text_com_1
alias autosorry_var autosorry_2
alias but_name_1 "^f0Say only to teammates"
alias but_name_2 "Say to all"
alias how_to sayteam
if (getalias say_text) [] [alias say_text ""]

newgui "autosorry" [
                    guititle "autosorry"
                    guibar
                    guilist [
                             guistayopen [
                                          guibutton $but_name_1 [alias how_to sayteam; alias but_name_1 "^f0Say only to teammates"; alias but_name_2 "Say to all"]
                                          guibar
                                          guibutton $but_name_2 [alias how_to say; alias but_name_1 "Say only to teammates"; alias but_name_2 "^f0Say to all"]
]
]
                    guibar
                    guitext "Type here the text in, which you want to say, when you did a teamkill:"
                    guifield say_text 59
                    guibar
                    guistayopen [
                                 guibutton $but_text $but_text_com
]
                    guitab "about"
                    guititle "about"
                    guibar
                    guitext "Script is made by ^f6Leetex^f~."
                    guitext "Autosorry-script"
                    guitext "Greetings from ^f3Switzerland^f~!"
]

autosorry_1 = [alias frags (getfrags); alias deaths (getdeaths); sleep 200 [if (< (getfrags) $frags) [if (> (getdeaths) $deaths) [] [if (< (getfrags) 0) [$how_to $say_text; $autosorry_var] [if (> (getfrags) 0) [$how_to $say_text; $autosorry_var] []]]] []; sleep 0 [$autosorry_var]]]
autosorry_2 = 0

but_text_com_1 = [alias but_text "^f0The script is enabled. Click here to disable."; alias but_text_com but_text_com_2; alias autosorry_var autosorry_1; $autosorry_var]
but_text_com_2 = [alias but_text "^f3The script is disabled. Click here to enable."; alias but_text_com but_text_com_1; alias autosorry_var autosorry_2; $autosorry_var]

exec script.cfg
Image
DeathStar
Leaders
Posts: 336
Joined: Sun Jun 12, 2016 1:07 am
Location: GB
Playstyle: fragger
Contact:

Re: Auto-sorry/goodgame script

Post by DeathStar »

This should fix it and stop it from saying sorry when you're in spectator mode. Just replace the old code with this.

Code: Select all

bind P [showgui "autosorry"]
editbind P [showgui "autosorry"]
specbind P [showgui "autosorry"]

alias but_text "^f3The script is disabled. Click here to enable."
alias but_text_com but_text_com_1
alias autosorry_var autosorry_2
alias but_name_1 "^f0Say only to teammates"
alias but_name_2 "Say to all"
alias how_to sayteam
if (getalias say_text) [] [alias say_text ""]

newgui "autosorry" [
                    guititle "autosorry"
                    guibar
                    guilist [
                             guistayopen [
                                          guibutton $but_name_1 [alias how_to sayteam; alias but_name_1 "^f0Say only to teammates"; alias but_name_2 "Say to all"]
                                          guibar
                                          guibutton $but_name_2 [alias how_to say; alias but_name_1 "Say only to teammates"; alias but_name_2 "^f0Say to all"]
]
]
                    guibar
                    guitext "Type here the text in, which you want to say, when you did a teamkill:"
                    guifield say_text 59
                    guibar
                    guistayopen [
                                 guibutton $but_text $but_text_com
]
                    guitab "about"
                    guititle "about"
                    guibar
                    guitext "Script made by Leetex"
                    guitext "Modified by DeathStar"
                    guitext "Autosorry-script"
]

autosorry_1 = [if (! (isspectator)) [alias frags (getfrags); alias deaths (getdeaths); sleep 200 [if (< (getfrags) $frags) [if (> (getdeaths) $deaths) [] [if (< (getfrags) 0) [$how_to $say_text; $autosorry_var] [if (> (getfrags) 0) [$how_to $say_text; $autosorry_var] []]]] []; sleep 0 [$autosorry_var]]]]
autosorry_2 = 0

but_text_com_1 = [alias but_text "^f0The script is enabled. Click here to disable."; alias but_text_com but_text_com_2; alias autosorry_var autosorry_1; $autosorry_var]
but_text_com_2 = [alias but_text "^f3The script is disabled. Click here to enable."; alias but_text_com but_text_com_1; alias autosorry_var autosorry_2; $autosorry_var]

exec script.cfg
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest