counter script

Have questions about CoD4 mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
User avatar
Goro92
CJ Spammer!
CJ Spammer!
Posts: 605
Joined: March 7th, 2011, 5:54 pm
Location: Brescia, Italy

counter script

Post by Goro92 » May 7th, 2011, 4:53 pm

can someone give me a script that show u in what place you finished at?
i know is possible but to hard 4 me :D
Image

User avatar
Creep
CJ Worshipper
CJ Worshipper
Posts: 268
Joined: August 31st, 2006, 10:32 am
Location: Hungary

Re: counter script

Post by Creep » May 9th, 2011, 6:40 pm

first u should make a trigger_multiple at the end.
then create a level.counter = 0; variable
when somebody trigger the finish line check
if(!isDefined(user.ended)){
level.counter +=1;
now write out the level.counter + name with some costum text.
user.ended = true;
}

If user.ended defined already the trigerr won't write out his new position, only once.

that's all.
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests