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


FmC
 
HomePortalLatest imagesSearchRegisterLog in
Search
 
 

Display results as :
 
Rechercher Advanced Search
Latest topics
» Acruz'' apply!
Ratio at the end of a game script! Icon_minitimeSat Jun 09, 2012 9:02 am by Acruz''

» ADIGA Apply
Ratio at the end of a game script! Icon_minitimeSat May 05, 2012 5:19 am by Deuce

» New website
Ratio at the end of a game script! Icon_minitimeTue May 01, 2012 6:37 pm by @Ppl3

» BoMbeR applys :)
Ratio at the end of a game script! Icon_minitimeTue May 01, 2012 2:59 pm by Bomber!!

» Application: tokka
Ratio at the end of a game script! Icon_minitimeMon Apr 30, 2012 11:47 am by tokka

» |FmC| vs =TUF= (2vs2) 2:0 [W]
Ratio at the end of a game script! Icon_minitimeMon Apr 30, 2012 2:51 am by HugsnKisses

» FmC 1v1 Tourney bracket
Ratio at the end of a game script! Icon_minitimeMon Apr 30, 2012 2:48 am by HugsnKisses

» Some of my 1vs1's
Ratio at the end of a game script! Icon_minitimeSun Apr 29, 2012 2:21 pm by Damn

» Shots Fired script!
Ratio at the end of a game script! Icon_minitimeFri Apr 27, 2012 12:10 pm by tokka

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

 

 Ratio at the end of a game script!

Go down 
4 posters
AuthorMessage
GolfWang2

GolfWang2


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

Ratio at the end of a game script! Empty
PostSubject: Ratio at the end of a game script!   Ratio at the end of a game script! Icon_minitimeSat 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
Ike-NoobLord

Ike-NoobLord


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

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

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

Deuce


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

Ratio at the end of a game script! Empty
PostSubject: Re: Ratio at the end of a game script!   Ratio at the end of a game script! Icon_minitimeSat 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
http://www.black-diamond-wolf.deviantart.com
Ike-NoobLord

Ike-NoobLord


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

Ratio at the end of a game script! Empty
PostSubject: Re: Ratio at the end of a game script!   Ratio at the end of a game script! Icon_minitimeSat 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
Deuce

Deuce


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

Ratio at the end of a game script! Empty
PostSubject: Re: Ratio at the end of a game script!   Ratio at the end of a game script! Icon_minitimeSat 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

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




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

Ratio at the end of a game script! Empty
PostSubject: Re: Ratio at the end of a game script!   Ratio at the end of a game script! Icon_minitimeSat 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
Ike-NoobLord

Ike-NoobLord


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

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

ty ^^

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




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

Ratio at the end of a game script! Empty
PostSubject: Re: Ratio at the end of a game script!   Ratio at the end of a game script! Icon_minitimeSat 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
Sponsored content





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

Back to top Go down
 
Ratio at the end of a game script!
Back to top 
Page 1 of 1
 Similar topics
-
» Shots Fired script!

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