Forum

> > CS2D > Scripts > Make a menu with lvl's
Forums overviewCS2D overview Scripts overviewLog in to reply

English Make a menu with lvl's

No replies
To the start Previous 1 Next To the start

old closed Make a menu with lvl's

alex72super
User Off Offline

Quote
Hello,

I have a simple menu where you buy guns with money, and I want to make a menu to use with my lvl code:
Like when you choose a m4a1 you lose 2 lvl's

1
2
3
4
5
6
7
8
9
10
11
12
13
14
lvl = {}

function lo(k)
     if player(k,"team") ==2 then
          msg("You have leveled up!")
          lvl[k]=lvl[k]+1
     end
end

function ju()
     for _,id in ipairs(player(0,"table")) do
          parse('hudtxt2 '..id..' 0 "Level: '..lvl[id]..'" 99 99 0')
     end
end

Can you please help me ??


Nevermind i got it can be closed.
edited 2×, last 03.10.13 06:43:04 pm

Admin/mod comment

Closed per author request.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview