Files

> > CS2D > Lua Scripts > [FFBAU] FREE Fast Building & Upgrade Unlimited! v3
Files overviewCS2D overviewLua Scripts overview

English [FFBAU] FREE Fast Building & Upgrade Unlimited! v3 >

15 comments863 b, 1,512 Downloads

Comments

15 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

Stinger
User Off Offline

@user stilltech: [GF}<Cyxapuk^_^>{RUS] is him, see the sreenshot

old

EXOSuit
User Off Offline

Are this allready made?

old

stilltech
User Off Offline

@user Julia D14M0ND-H34RT: edit from
--|Lua version 3
--|LUA SCRIPT by [GF}<Cyxapuk^_^>{RUS]
--|IP:85.142.55.116:30001 - Zombie [ON]

Free=1
upgradedwalls=0
upgradedturrets=1
upgradedsupplys=1
FastUpgrade=1
fastbuilding=1

if Free==1 then
     parse('mp_building_price "Barricade" 0')
     parse('mp_building_price "Barbed Wire" 0')
     parse('mp_building_price "Wall I" 0')
     parse('mp_building_price "Wall II" 0')
     parse('mp_building_price "Wall III" 0')
     parse('mp_building_price "Gate Field" 0')
     parse('mp_building_price "Supply" 0')
     parse('mp_building_price "Dispenser" 0')
     parse('mp_building_price "Turret" 0')
     parse('mp_building_price "Teleporter Entrance" 0')
     parse('mp_building_price "Teleporter Exit" 0')
end


addhook("buildattempt","fast_build")
function fast_build(id,type,tx,ty)
     if fastbuilding==1 then
          if (type~=2) and (type<=14) then
               if upgradedwalls==1 and (type==1 or type==3 or type==4) then type=5 end
               if upgradedturrets==1 and type==8 then type=12 end
               if upgradedsupplys==1 and type==9 then type=15 end
               parse("spawnobject "..type.." "..tx.." "..ty.." "..player(id,"rot").." 1 "..player(id,"team").." "..id)
               return 1
          end
     end
end
addhook("objectupgrade","fast_upgrade")
function fast_upgrade(id,idp,progress,total)
     if FastUpgrade==1 then
          local x=object(id,"tilex")
          local y=object(id,"tiley")
          local type=object(id,"type")
          local rot=object(id,"rot")
          local team=player(idp,"team")
          local idp=object(id,"player")
          local mode=object(id,"mode")
          if type==8 then type=11
          elseif type==11 then type=12
          elseif type==9 then type=15
          elseif type==1 then type=3
          elseif type==3 then type=4
          elseif type==4 then type=5
          end
          parse("killobject "..id)
          parse("spawnobject "..type.." "..x.." "..y.." "..rot.." "..mode.." "..team.." "..idp)
          return 1
     end
end
addhook("minute","minute")
function fast_minute()
     msg("©000255000|Lua version 3")
     msg("©000255000|LUA SCRIPT by [GF}<Cyxapuk^_^>{RUS]")
     msg("©000255000|IP:85.142.55.116:30001 - Zombie [ON]")
end
addhook("mapchange","mapchange")
function mapchange(newmap)
     parse('mp_building_price "Barricade" 300')
     parse('mp_building_price "Barbed Wire" 500')
     parse('mp_building_price "Wall I" 1000')
     parse('mp_building_price "Wall II" 2000')
     parse('mp_building_price "Wall III" 3000')
     parse('mp_building_price "Gate Field" 1500')
     parse('mp_building_price "Supply" 5000')
     parse('mp_building_price "Dispenser" 5000')
     parse('mp_building_price "Turret" 5000')
     parse('mp_building_price "Teleporter Entrance" 3000')
     parse('mp_building_price "Teleporter Exit" 3000')
end


TO


--|Lua version 3
--|LUA SCRIPT by [GF}<Cyxapuk^_^>{RUS]
--|IP:85.142.55.116:30001 - Zombie [ON]

Free=1
upgradedwalls=0
upgradedturrets=0
upgradedsupplys=1
FastUpgrade=1
fastbuilding=1

if Free==1 then
     parse('mp_building_price "Barricade" 0')
     parse('mp_building_price "Barbed Wire" 0')
     parse('mp_building_price "Wall I" 0')
     parse('mp_building_price "Wall II" 0')
     parse('mp_building_price "Wall III" 0')
     parse('mp_building_price "Gate Field" 0')
     parse('mp_building_price "Supply" 0')
     parse('mp_building_price "Dispenser" 0')
     parse('mp_building_price "Turret" 0')
     parse('mp_building_price "Teleporter Entrance" 0')
     parse('mp_building_price "Teleporter Exit" 0')
end


addhook("buildattempt","fast_build")
function fast_build(id,type,tx,ty)
     if fastbuilding==1 then
          if (type~=2) and (type<=14) then
               if upgradedwalls==1 and (type==1 or type==3 or type==4) then type=5 end
               if upgradedturrets==1 and type==8 then type=12 end
               if upgradedsupplys==1 and type==9 then type=15 end
               parse("spawnobject "..type.." "..tx.." "..ty.." "..player(id,"rot").." 1 "..player(id,"team").." "..id)
               return 1
          end
     end
end
addhook("objectupgrade","fast_upgrade")
function fast_upgrade(id,idp,progress,total)
     if FastUpgrade==1 then
          local x=object(id,"tilex")
          local y=object(id,"tiley")
          local type=object(id,"type")
          local rot=object(id,"rot")
          local team=player(idp,"team")
          local idp=object(id,"player")
          local mode=object(id,"mode")
          if type==8 then type=11
          elseif type==11 then type=12
          elseif type==9 then type=15
          elseif type==1 then type=3
          elseif type==3 then type=4
          elseif type==4 then type=5
          end
          parse("killobject "..id)
          parse("spawnobject "..type.." "..x.." "..y.." "..rot.." "..mode.." "..team.." "..idp)
          return 1
     end
end
addhook("minute","minute")
function fast_minute()
     msg("©000255000|Lua version 3")
     msg("©000255000|LUA SCRIPT by [GF}<Cyxapuk^_^>{RUS]")
     msg("©000255000|IP:85.142.55.116:30001 - Zombie [ON]")
end
addhook("mapchange","mapchange")
function mapchange(newmap)
     parse('mp_building_price "Barricade" 300')
     parse('mp_building_price "Barbed Wire" 500')
     parse('mp_building_price "Wall I" 1000')
     parse('mp_building_price "Wall II" 2000')
     parse('mp_building_price "Wall III" 3000')
     parse('mp_building_price "Gate Field" 1500')
     parse('mp_building_price "Supply" 5000')
     parse('mp_building_price "Dispenser" 5000')
     parse('mp_building_price "Turret" 5000')
     parse('mp_building_price "Teleporter Entrance" 3000')
     parse('mp_building_price "Teleporter Exit" 3000')
end

old

tom282f3
User Off Offline

I do think we have a whole bunch of this. Dash it all, mister!

old Good!

ItsAdamLY
User Off Offline

Nice script! Hope you make more lua
I like it!

old 4/5

Julia D14M0ND-H34RT
User Off Offline

It seriously needs something like this:
When I deploy a Turret, I cannot decide what level it will be.
It automatically does it 3.
Something like this will be better
-------------
after deploy|
1 hit - lvl 1 |
2 hit - lvl 2 |
3 hit - lvl 3 |
------------
I like it!

old

melatisri
User Off Offline

wow ay like you portal 2 theaks for lua
I like it!

old good good

like cs2d
User Off Offline

wow city life and building its g*best script in world
I like it!

old

Apache uwu
User Off Offline

Haha I stole your idea I like your script though...
I like it!

old :)

Fabio-pro-kill
User Off Offline

I love it ! keep it on ! : D ! : D
I like it!

old

Kostyan1996
User Off Offline

Oh yea!
The best script of all others!
I like it!

old Omg

SDKey
User Off Offline

Congratulation with no bugs))
I like it!

old nice

laying
User Off Offline

it is end update
no fast build laser mines and mines!
I like it!
To the start Previous 1 Next To the start