FmC
 
HomePortalCalendarFAQSearchMemberlistUsergroupsRegisterLog in
Search
 
 

Display results as :
 
Rechercher Advanced Search
Latest topics
» Acruz'' apply!
Sat Jun 09, 2012 9:02 am by Acruz''

» ADIGA Apply
Sat May 05, 2012 5:19 am by Deuce

» New website
Tue May 01, 2012 6:37 pm by @Ppl3

» BoMbeR applys :)
Tue May 01, 2012 2:59 pm by Bomber!!

» Application: tokka
Mon Apr 30, 2012 11:47 am by tokka

» |FmC| vs =TUF= (2vs2) 2:0 [W]
Mon Apr 30, 2012 2:51 am by HugsnKisses

» FmC 1v1 Tourney bracket
Mon Apr 30, 2012 2:48 am by HugsnKisses

» Some of my 1vs1's
Sun Apr 29, 2012 2:21 pm by Damn

» Shots Fired script!
Fri Apr 27, 2012 12:10 pm by tokka

Friends
UltraPenguin
DES|
HyPE|
AssaultCube
ACR
|#LC*|
=MyS=
B}
FD*
LG*

Share | 
 

 Ratio at the end of a game script!

Go down 
AuthorMessage
GolfWang2

avatar

Posts : 48
Join date : 2012-04-01
Location : USA

PostSubject: Ratio at the end of a game script!   Sat Apr 07, 2012 5:27 am

Code:
//Get our ratio
alias getRatio [
playercn = (findcn $curname)
frags = (at (pstat_score $playercn) 1)
deaths = (at (pstat_score $playercn) 2)
ratio = (divf $frags $deaths)
echo (concat (c 1)"Your ratio is:" (c 3)$ratio)
]

//At intermission
alias start_intermission [ sleep 2000 [getRatio] ]
Back to top Go down
View user profile
Ike-NoobLord

avatar

Posts : 98
Join date : 2012-03-26
Location : USA

PostSubject: Re: Ratio at the end of a game script!   Sat Apr 07, 2012 11:15 am

wait you gotta teach me how to input scripts
Back to top Go down
View user profile
Deuce

avatar

Posts : 108
Join date : 2012-04-02
Age : 24
Location : United States

PostSubject: Re: Ratio at the end of a game script!   Sat Apr 07, 2012 2:40 pm

Ike-NoobLord wrote:
wait you gotta teach me how to input scripts

Alot of them you can just dive into the config files and put into the autoexec.cfg file. At least that's what I do.

app/assaultcube/config

Just copy and paste into the auto exec file. Should work for ya Razz.

Remind me later and I'll help customize your menus a little bit.
Back to top Go down
View user profile http://www.black-diamond-wolf.deviantart.com
Ike-NoobLord

avatar

Posts : 98
Join date : 2012-03-26
Location : USA

PostSubject: Re: Ratio at the end of a game script!   Sat Apr 07, 2012 3:02 pm

dude....i know nothing about scripts, how to place them, use them, get to them xD
I am gamer...no mod'r xD
Back to top Go down
View user profile
Deuce

avatar

Posts : 108
Join date : 2012-04-02
Age : 24
Location : United States

PostSubject: Re: Ratio at the end of a game script!   Sat Apr 07, 2012 3:06 pm

Ike-NoobLord wrote:
dude....i know nothing about scripts, how to place them, use them, get to them xD
I am gamer...no mod'r xD

Ok, copy and paste what Golf said. (the code part) Then go through the folders in order as I list them.

app/assaultcube/config

There's a file named "autoexec", find it, and open it with notepad or wordpad. Then, you will paste what he has said into the file, and save it. If I need to, I can upload my version (it has my red hudgun code though) for you to use.


*EDIT*

In case you're still lost Ike, I've taken the liberty of uploading my auto exec file for you to use Razz

mediafire.com ?she3w1sjhbxeux2
Back to top Go down
View user profile http://www.black-diamond-wolf.deviantart.com
Damn



Posts : 48
Join date : 2012-03-25
Age : 30
Location : Tampere, Finland

PostSubject: Re: Ratio at the end of a game script!   Sat Apr 07, 2012 3:53 pm

Thanks for the script golf, I was going to ask for it before but forgot Very Happy
Back to top Go down
View user profile
Ike-NoobLord

avatar

Posts : 98
Join date : 2012-03-26
Location : USA

PostSubject: Re: Ratio at the end of a game script!   Sat Apr 07, 2012 5:41 pm

ty ^^

My AC file shows no autoexe script :/
Back to top Go down
View user profile
Damn



Posts : 48
Join date : 2012-03-25
Age : 30
Location : Tampere, Finland

PostSubject: Re: Ratio at the end of a game script!   Sat Apr 07, 2012 6:50 pm

Ike-NoobLord wrote:
ty ^^

My AC file shows no autoexe script :/

Go to program files and find assaultcube folder, go to "config" folder, autoexec is there
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Ratio at the end of a game script!   

Back to top Go down
 
Ratio at the end of a game script!
Back to top 
Page 1 of 1
 Similar topics
-
» This game sure can be adamant about wanting players to take certain weapons
» Luck O' the Bearish Instant Win Game
» The wish game
» Outcry. The shimmering game
» What Would You Like In A New Tex Murphy Game?

Permissions in this forum:You cannot reply to topics in this forum
Fragmaster Clan :: AssaultCube :: Maps/Scripts/Mods :: Scripts-
Jump to: