| Ratio at the end of a game script! | |
|
|
Author | Message |
---|
GolfWang2
Posts : 48 Join date : 2012-04-01 Location : USA
| Subject: 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] ] | |
|
| |
Ike-NoobLord
Posts : 98 Join date : 2012-03-26 Location : USA
| Subject: 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 | |
|
| |
Deuce
Posts : 108 Join date : 2012-04-02 Age : 30 Location : United States
| |
| |
Ike-NoobLord
Posts : 98 Join date : 2012-03-26 Location : USA
| Subject: 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 | |
|
| |
Deuce
Posts : 108 Join date : 2012-04-02 Age : 30 Location : United States
| Subject: 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
http://www.mediafire.com/?she3w1sjhbxeux2 | |
|
| |
Damn
Posts : 48 Join date : 2012-03-25 Age : 35 Location : Tampere, Finland
| Subject: 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 | |
|
| |
Ike-NoobLord
Posts : 98 Join date : 2012-03-26 Location : USA
| Subject: Re: Ratio at the end of a game script! Sat Apr 07, 2012 5:41 pm | |
| ty ^^
My AC file shows no autoexe script :/ | |
|
| |
Damn
Posts : 48 Join date : 2012-03-25 Age : 35 Location : Tampere, Finland
| Subject: 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 | |
|
| |
Sponsored content
| Subject: Re: Ratio at the end of a game script! | |
| |
|
| |
| Ratio at the end of a game script! | |
|