ContrucaoRapida=1
RapidoUpgrade=0
Gratis=1
Ilimitado=1
Extra=0
addhook("buildattempt","fast_build")
addhook("objectupgrade","fast_upgrade")
building_names = {"Barricade","Barbed Wire","Wall I","Wall II","Wall III","Gate Field","Dispenser","Tiple Turret","Supply",[13] = "Teleporter Entrance",[14] = "Teleporter Exit","Mine","Laser Mine"}
function spawn_object(id,type,x,y)
parse("spawnobject "..type.." "..x.." "..y.." 0 100 "..player(id,"team").." "..id)
end
function fast_build(id,type,x,y)
if (ContrucaoRapida==1) then
if(building_names[type]) then
spawn_object(id,type,x,y)
return 1
end
end
end
function fast_upgrade(id,idp,progress,total)
if (RapidoUpgrade==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=12
elseif type==9 then type=15
elseif type==1 then type=20
elseif type==4 then type=21
end
parse('effect "flare" '..x..' '..y..' 25 50 000 255 000')
parse("killobject "..id)
parse("spawnobject "..type.." "..x.." "..y.." "..rot.." "..mode.." "..team.." "..idp)
return 1
end
end
if (Gratis==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 "Turret" "0"')
parse('mp_building_price "Dispenser" "0"')
parse('mp_building_price "Supply" "GRatis"')
parse('mp_building_price "Teleporter Entrance" "0"')
parse('mp_building_price "Teleporter Exit" "0"')
parse('mp_building_price "Mine" "0"')
end
if (Ilimitado==1) then
parse('mp_building_limit "Barricade" "50"')
parse('mp_building_limit "Barbed Wire" "50"')
parse('mp_building_limit "Wall I" "50"')
parse('mp_building_limit "Wall II" "30"')
parse('mp_building_limit "Wall III" "15"')
parse('mp_building_limit "Gate Field" "20"')
parse('mp_building_limit "Turret" "5"')
parse('mp_building_limit "Dispenser" "1"')
parse('mp_building_limit "Supply" "1"')
parse('mp_building_limit "Teleporter Entrance" "2"')
parse('mp_building_limit "Teleporter Exit" "2"')
end
if (Extra==1) then
parse('mp_building_health "Wall III" 99999999999999')
parse('mp_building_health "Gate Field" 99999999999999')
parse('mp_building_health "Barbed Wire" 99999999999999')
parse('mp_supply_items 83,90,91,3')
parse('mp_damagefactor 1.0')
parse('mp_wpndmg USP 9999999999999999')
parse('mp_wpndmg Deagle 9999999999999999')
parse('mp_wpndmg P90 9999999999999999')
parse('mp_killteambuildings 1')
parse('mp_dispenser_health 100')
parse('mp_teamkillpenalty 9999')
end