elseif player_action_is_pressed(B_LBRACKET) and not USE_PUSHED then
if HEIGHT_DOWN_COUNTER == 1 then
player_change_default_size(LOCAL_PLAYER, 0.9, false)
sandboxplus_message(" Decrease Player Size .9")
elseif HEIGHT_DOWN_COUNTER == 2 then
player_change_default_size(LOCAL_PLAYER, 0.8, false)
sandboxplus_message(" Decrease Player Size .8")
elseif HEIGHT_DOWN_COUNTER == 3 then
player_change_default_size(LOCAL_PLAYER, 0.7, false)
sandboxplus_message(" Decrease Player Size .7")
elseif HEIGHT_DOWN_COUNTER == 4 then
player_change_default_size(LOCAL_PLAYER, 0.6, false)
sandboxplus_message(" Decrease Player Size .6")
elseif HEIGHT_DOWN_COUNTER == 5 then
player_change_default_size(LOCAL_PLAYER, 0.5, false)
sandboxplus_message(" Decrease Player Size .5")
elseif HEIGHT_DOWN_COUNTER == 6 then
player_change_default_size(LOCAL_PLAYER, 0.4, false)
sandboxplus_message(" Decrease Player Size .4")
elseif HEIGHT_DOWN_COUNTER == 7 then
player_change_default_size(LOCAL_PLAYER, 0.3, false)
sandboxplus_message(" Decrease Player Size .3")
elseif HEIGHT_DOWN_COUNTER == 8 then
player_change_default_size(LOCAL_PLAYER, 0.2, false)
sandboxplus_message(" Decrease Player Size .2")
elseif HEIGHT_DOWN_COUNTER == 9 then
player_change_default_size(LOCAL_PLAYER, 0.1, false)
sandboxplus_message(" Decrease Player Size .1")
elseif HEIGHT_DOWN_COUNTER == 10 then
player_change_default_size(LOCAL_PLAYER, 1.0, false)
sandboxplus_message(" Player height restored to default")
end
if HEIGHT_DOWN_COUNTER == 10 then
HEIGHT_DOWN_COUNTER = 1
else
HEIGHT_DOWN_COUNTER = HEIGHT_DOWN_COUNTER + 1
end
USE_PUSHED = true
elseif player_action_is_pressed(B_RBRACKET) and not USE_PUSHED then
if HEIGHT_UP_COUNTER == 1 then
player_change_default_size(LOCAL_PLAYER, 1.1, false)
sandboxplus_message(" Increase Player Size 1.1")
elseif HEIGHT_UP_COUNTER == 2 then
player_change_default_size(LOCAL_PLAYER, 1.2, false)
sandboxplus_message(" Increase Player Size 1.2")
elseif HEIGHT_UP_COUNTER == 3 then
player_change_default_size(LOCAL_PLAYER, 1.3, false)
sandboxplus_message(" Increase Player Size 1.3")
elseif HEIGHT_UP_COUNTER == 4 then
player_change_default_size(LOCAL_PLAYER, 1.4, false)
sandboxplus_message(" Increase Player Size 1.4")
elseif HEIGHT_UP_COUNTER == 5 then
player_change_default_size(LOCAL_PLAYER, 1.5, false)
sandboxplus_message(" Increase Player Size 1.5")
elseif HEIGHT_UP_COUNTER == 6 then
player_change_default_size(LOCAL_PLAYER, 1.6, false)
sandboxplus_message(" Increase Player Size 1.6")
elseif HEIGHT_UP_COUNTER == 7 then
player_change_default_size(LOCAL_PLAYER, 1.7, false)
sandboxplus_message(" Increase Player Size 1.7")
elseif HEIGHT_UP_COUNTER == 8 then
player_change_default_size(LOCAL_PLAYER, 1.8, false)
sandboxplus_message(" Increase Player Size 1.8")
elseif HEIGHT_UP_COUNTER == 9 then
player_change_default_size(LOCAL_PLAYER, 1.9, false)
sandboxplus_message(" Increase Player Size 1.9")
elseif HEIGHT_UP_COUNTER == 10 then
player_change_default_size(LOCAL_PLAYER, 2.0, false)
sandboxplus_message(" Increase Player Size 2.0")
elseif HEIGHT_UP_COUNTER == 11 then
player_change_default_size(LOCAL_PLAYER, 2.5, false)
sandboxplus_message(" Increase Player Size 2.5")
elseif HEIGHT_UP_COUNTER == 12 then
player_change_default_size(LOCAL_PLAYER, 3.0, false)
sandboxplus_message(" Increase Player Size 3.0")
elseif HEIGHT_UP_COUNTER == 13 then
player_change_default_size(LOCAL_PLAYER, 3.5, false)
sandboxplus_message(" Increase Player Size 3.5")
elseif HEIGHT_UP_COUNTER == 14 then
player_change_default_size(LOCAL_PLAYER, 4.0, false)
sandboxplus_message(" Increase Player Size 4.0")
elseif HEIGHT_UP_COUNTER == 15 then
player_change_default_size(LOCAL_PLAYER, 4.5, false)
sandboxplus_message(" Increase Player Size 4.5")
elseif HEIGHT_UP_COUNTER == 16 then
player_change_default_size(LOCAL_PLAYER, 5.0, false)
sandboxplus_message(" Increase Player Size 5.0")
elseif HEIGHT_UP_COUNTER == 17 then
player_change_default_size(LOCAL_PLAYER, 6.0, false)
sandboxplus_message(" Increase Player Size 6.0")
elseif HEIGHT_UP_COUNTER == 18 then
player_change_default_size(LOCAL_PLAYER, 7.0, false)
sandboxplus_message(" Increase Player Size 7.0")
elseif HEIGHT_UP_COUNTER == 19 then
player_change_default_size(LOCAL_PLAYER, 8.0, false)
sandboxplus_message(" Increase Player Size 8.0")
elseif HEIGHT_UP_COUNTER == 20 then
player_change_default_size(LOCAL_PLAYER, 9.0, false)
sandboxplus_message(" Increase Player Size 9.0")
elseif HEIGHT_UP_COUNTER == 21 then
player_change_default_size(LOCAL_PLAYER, 10.0, false)
sandboxplus_message(" Increase Player Size 10.0")
elseif HEIGHT_UP_COUNTER == 22 then
player_change_default_size(LOCAL_PLAYER, 1.0, false)
sandboxplus_message(" Player Height restored")
end
if HEIGHT_UP_COUNTER == 22 then
HEIGHT_UP_COUNTER = 1
else
HEIGHT_UP_COUNTER = HEIGHT_UP_COUNTER + 1
end
USE_PUSHED = true
end